Wrap usage of MODLAUNCHER in quotes

Paths on OS X / macOS contain a space that was causing dirname to fail
This commit is contained in:
Taryn Hill 2017-02-16 21:59:15 -06:00
parent 1d1841426f
commit 53fee8e8f2

View File

@ -5,7 +5,7 @@ MODID="example"
# Don't edit below this line # Don't edit below this line
MODLAUNCHER=$(python -c "import os; print(os.path.realpath('$0'))") MODLAUNCHER=$(python -c "import os; print(os.path.realpath('$0'))")
MODROOT=$(dirname $MODLAUNCHER) MODROOT=$(dirname "$MODLAUNCHER")
cd engine cd engine
# TODO: Remove ./mods from the search path after we deprecate cross-mod references # TODO: Remove ./mods from the search path after we deprecate cross-mod references