diff options
author | Brian Anderson <banderson@mozilla.com> | 2015-02-04 18:27:24 -0800 |
---|---|---|
committer | Brian Anderson <banderson@mozilla.com> | 2015-02-04 18:27:24 -0800 |
commit | 02bb12acb4b4bcb42cf159cc7654ec217fe76bb1 (patch) | |
tree | dd86d3b31806d13e3ac5849d2366213924d3afef /install-template.sh | |
parent | 669641395c8936336cd5b2b31e361996e2668057 (diff) | |
download | rust-installer-02bb12acb4b4bcb42cf159cc7654ec217fe76bb1.tar.gz |
Quote some vars. #3
Diffstat (limited to 'install-template.sh')
-rw-r--r-- | install-template.sh | 6 |
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 |