summaryrefslogtreecommitdiff
path: root/tools/linux_packaging/install.sh
diff options
context:
space:
mode:
authorTodd Naugle <toddn@glw.com>2011-05-27 19:46:28 +0000
committerTodd Naugle <toddn@glw.com>2011-05-27 19:46:28 +0000
commitc3a681b86a452a01eebf54842f9e12403504125d (patch)
treeb8fb622cee90b7d7c68f8f27e1c109425dbee611 /tools/linux_packaging/install.sh
parente057436a2bd94f51c93620ee1ee467f14af7ec1d (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/install.sh')
-rwxr-xr-xtools/linux_packaging/install.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/linux_packaging/install.sh b/tools/linux_packaging/install.sh
index 33863ee646..a69a478a7f 100755
--- a/tools/linux_packaging/install.sh
+++ b/tools/linux_packaging/install.sh
@@ -7,19 +7,19 @@
# so go ahead and figure out our path and make sure we are in that directory.
SAVED_PWD=$PWD
-PKG_PATH=$(dirname $(readlink -f $0))
-cd ${PKG_PATH}
+PKG_PATH=$(dirname "$(readlink -f "$0")")
+cd "${PKG_PATH}"
if [ -z "$TERM" ] || [ "$TERM" = "dumb" ]; then
if which xterm > /dev/null; then
- exec xterm -e ${PKG_PATH}/.stage2.run
+ exec xterm -e "${PKG_PATH}/.stage2.run"
elif which gnome-terminal > /dev/null; then
- exec gnome-terminal -e ${PKG_PATH}/.stage2.run
+ exec gnome-terminal -e "${PKG_PATH}/.stage2.run"
elif which konsole > /dev/null; then
- exec konsole -e ${PKG_PATH}/.stage2.run
+ exec konsole -e "${PKG_PATH}/.stage2.run"
fi
else
- ${PKG_PATH}/.stage2.run
+ "${PKG_PATH}/.stage2.run"
fi
-cd ${SAVED_PWD}
+cd "${SAVED_PWD}"