projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Properly handle spaces in filenames along the path to the installer.
[ardour.git]
/
tools
/
linux_packaging
/
install.sh
diff --git
a/tools/linux_packaging/install.sh
b/tools/linux_packaging/install.sh
index 33863ee64603cde0ae3a306461877a6bfc83dc62..a69a478a7fa9af86502909a22725149907231652 100755
(executable)
--- 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
# 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
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
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
elif which konsole > /dev/null; then
- exec konsole -e
${PKG_PATH}/.stage2.run
+ exec konsole -e
"${PKG_PATH}/.stage2.run"
fi
else
fi
else
- ${PKG_PATH}/.stage2.run
+ "${PKG_PATH}/.stage2.run"
fi
fi
-cd
${SAVED_PWD}
+cd
"${SAVED_PWD}"