From a1821e6861f38b3cd26a16c7fccac575cd934ae2 Mon Sep 17 00:00:00 2001 From: Markus <28253325+SpaceNinjaApe@users.noreply.github.com> Date: Tue, 18 Aug 2020 22:39:34 +0200 Subject: [PATCH] Fixes Error "There is no game at this location" (#172) $GAMEPATH was not wrapped like this "$GAMEPATH" `/path/to/World\ of\ Warcraft\` works now. --- linux/getmangos.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/linux/getmangos.sh b/linux/getmangos.sh index 476b3269..93848483 100755 --- a/linux/getmangos.sh +++ b/linux/getmangos.sh @@ -1284,15 +1284,15 @@ function ExtractResources # Check the user's answer if [ $? -eq 0 ]; then Log "Deleting DBC and Maps previously generated." 1 - rm -rf $GAMEPATH/dbc - rm -rf $GAMEPATH/maps + rm -rf "$GAMEPATH/dbc" + rm -rf "$GAMEPATH/maps" Log "Copying DBC and Maps extractor" 0 rm -f "$GAMEPATH/map-extractor" cp "$INSTPATH/bin/tools/map-extractor" "$GAMEPATH" Log "Extracting DBC and Maps" 0 - cd $GAMEPATH + cd "$GAMEPATH" ./map-extractor if [ $? -eq 0 ]; then @@ -1316,11 +1316,11 @@ function ExtractResources cp -R "$GAMEPATH/maps" "$INSTPATH/bin" fi else - rm -rf $GAMEPATH/map-extractor + rm -rf "$GAMEPATH/map-extractor" cp "$INSTPATH/bin/tools/map-extractor" "$GAMEPATH" Log "Extracting DBC and Maps" 0 - cd $GAMEPATH + cd "$GAMEPATH" ./map-extractor if [ $? -eq 0 ]; then