summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
Diffstat (limited to 'distrib')
-rw-r--r--distrib/MacOS/installer-scripts/create-links8
1 files changed, 4 insertions, 4 deletions
diff --git a/distrib/MacOS/installer-scripts/create-links b/distrib/MacOS/installer-scripts/create-links
index 55a356c0fd..58bed8943b 100644
--- a/distrib/MacOS/installer-scripts/create-links
+++ b/distrib/MacOS/installer-scripts/create-links
@@ -13,17 +13,17 @@
# See apple "Install Operations" documentation for how this script is called.
-INSTALL_DEST=$2
-INSTALL_BASE=$3
+INSTALL_DEST="$2"
+INSTALL_BASE="$3"
if [ "$INSTALL_BASE" = / ]; then
INSTALL_BASE=/usr
fi
ProjectVersionInt=$(readlink "$INSTALL_DEST/GHC.framework/Versions/Current")
-GHC_BASE=$INSTALL_DEST/GHC.framework/Versions/$ProjectVersionInt
+GHC_BASE="$INSTALL_DEST/GHC.framework/Versions/$ProjectVersionInt"
-INSTALL_BIN=$INSTALL_BASE/bin
+INSTALL_BIN="$INSTALL_BASE/bin"
mkdir -p "$INSTALL_BIN"
if [ -d "$GHC_BASE/usr/bin" ]; then
ln -sf "$GHC_BASE"/usr/bin/* "$INSTALL_BIN/"