From 53fee8e8f24df51150bf92c92d2cc58ab2494ffb Mon Sep 17 00:00:00 2001 From: Taryn Hill Date: Thu, 16 Feb 2017 21:59:15 -0600 Subject: [PATCH] Wrap usage of MODLAUNCHER in quotes Paths on OS X / macOS contain a space that was causing dirname to fail --- launch-mod.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/launch-mod.sh b/launch-mod.sh index d7cc01b..4c06884 100755 --- a/launch-mod.sh +++ b/launch-mod.sh @@ -5,8 +5,8 @@ MODID="example" # Don't edit below this line MODLAUNCHER=$(python -c "import os; print(os.path.realpath('$0'))") -MODROOT=$(dirname $MODLAUNCHER) +MODROOT=$(dirname "$MODLAUNCHER") cd engine # TODO: Remove ./mods from the search path after we deprecate cross-mod references -mono OpenRA.Game.exe Engine.LaunchPath="$MODLAUNCHER" "Engine.ModSearchPaths=./mods,$MODROOT/mods" Engine.DefaultMod=$MODID Game.Mod=$MODID "$@" \ No newline at end of file +mono OpenRA.Game.exe Engine.LaunchPath="$MODLAUNCHER" "Engine.ModSearchPaths=./mods,$MODROOT/mods" Engine.DefaultMod=$MODID Game.Mod=$MODID "$@"