diff options
author | Todd Naugle <toddn@glw.com> | 2011-05-27 19:46:28 +0000 |
---|---|---|
committer | Todd Naugle <toddn@glw.com> | 2011-05-27 19:46:28 +0000 |
commit | c3a681b86a452a01eebf54842f9e12403504125d (patch) | |
tree | b8fb622cee90b7d7c68f8f27e1c109425dbee611 /tools/linux_packaging/stage2.run | |
parent | e057436a2bd94f51c93620ee1ee467f14af7ec1d (diff) |
Properly handle spaces in filenames along the path to the installer.
git-svn-id: svn://localhost/ardour2/branches/3.0@9613 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'tools/linux_packaging/stage2.run')
-rwxr-xr-x | tools/linux_packaging/stage2.run | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/linux_packaging/stage2.run b/tools/linux_packaging/stage2.run index 51c7d3a2f1..a438ea697a 100755 --- a/tools/linux_packaging/stage2.run +++ b/tools/linux_packaging/stage2.run @@ -101,8 +101,8 @@ SystemInstall () # If you double click a script, some systems don't get the PWD correct. # Force it to be correct -PKG_PATH=$(dirname $(readlink -f $0)) -cd ${PKG_PATH} +PKG_PATH=$(dirname "$(readlink -f "$0")") +cd "${PKG_PATH}" echo "" echo "Welcome to the ${PGM_NAME} installer" @@ -196,7 +196,7 @@ else REQUIRED_BYTES=$(cat .${PGM_NAME}_${ARCH}-*.size) #Check space in current folder - FREE_BYTES=$(df -P -B 1 ${PKG_PATH} | grep / | awk '{print $4}') + FREE_BYTES=$(df -P -B 1 "${PKG_PATH}" | grep / | awk '{print $4}') if [ ${FREE_BYTES} -le ${REQUIRED_BYTES} ] ; then echo "" |