summaryrefslogtreecommitdiff
path: root/install-template.sh
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2015-02-04 18:27:24 -0800
committerBrian Anderson <banderson@mozilla.com>2015-02-04 18:27:24 -0800
commit02bb12acb4b4bcb42cf159cc7654ec217fe76bb1 (patch)
treedd86d3b31806d13e3ac5849d2366213924d3afef /install-template.sh
parent669641395c8936336cd5b2b31e361996e2668057 (diff)
downloadrust-installer-02bb12acb4b4bcb42cf159cc7654ec217fe76bb1.tar.gz
Quote some vars. #3
Diffstat (limited to 'install-template.sh')
-rw-r--r--install-template.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/install-template.sh b/install-template.sh
index 44e11a2..81710b2 100644
--- a/install-template.sh
+++ b/install-template.sh
@@ -441,8 +441,8 @@ need_ok "failed to remove install probe"
# Sanity check: don't install to the directory containing the installer.
# That would surely cause chaos.
msg "verifying destination is not the same as source"
-INSTALLER_DIR="$(cd $(dirname $0) && pwd)"
-PREFIX_DIR="$(cd $dest_prefix && pwd)"
+INSTALLER_DIR="$(cd $(dirname "$0") && pwd)"
+PREFIX_DIR="$(cd "$dest_prefix" && pwd)"
if [ "${INSTALLER_DIR}" = "${PREFIX_DIR}" ]
then
err "can't install to same directory as installer"
@@ -688,7 +688,7 @@ for component in $COMPONENTS; do
fi
# Make sure there's a directory for it
- umask 022 && mkdir -p "$(dirname ${FILE_INSTALL_PATH})"
+ umask 022 && mkdir -p "$(dirname "${FILE_INSTALL_PATH}")"
need_ok "directory creation failed"
# Make the path absolute so we can uninstall it later without