Skip to content

Commit

Permalink
Fixes Error "There is no game at this location" (mangoszero#172)
Browse files Browse the repository at this point in the history
$GAMEPATH was not wrapped like this "$GAMEPATH"
`/path/to/World\ of\ Warcraft\` works now.
  • Loading branch information
SpaceNinjaApe authored and billy1arm committed Aug 18, 2020
1 parent 2139572 commit a1821e6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions linux/getmangos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a1821e6

Please sign in to comment.