From 02bb12acb4b4bcb42cf159cc7654ec217fe76bb1 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 4 Feb 2015 18:27:24 -0800 Subject: Quote some vars. #3 --- install-template.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'install-template.sh') 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 -- cgit v1.2.1