summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-03-30 13:56:12 +0200
committermathieui <mathieui@mathieui.net>2014-03-30 13:56:12 +0200
commitcf37785edc2de2c5d5c02919f48ada38c566ff45 (patch)
tree58843ea7a6f27dc9fd4ab7b795ce0d429ee56c09
parent42769dd28feaf82ff3b803395d3f563188ab1484 (diff)
downloadpoezio-cf37785edc2de2c5d5c02919f48ada38c566ff45.tar.gz
poezio-cf37785edc2de2c5d5c02919f48ada38c566ff45.tar.bz2
poezio-cf37785edc2de2c5d5c02919f48ada38c566ff45.tar.xz
poezio-cf37785edc2de2c5d5c02919f48ada38c566ff45.zip
Fix the launch script from directory with spaces in them
-rwxr-xr-xlaunch.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/launch.sh b/launch.sh
index 4fddeb10..8f43f0d1 100755
--- a/launch.sh
+++ b/launch.sh
@@ -1,10 +1,11 @@
#!/bin/sh
+poezio_dir=$(dirname "$0")
-if [ -d "$(dirname $0)/.git" ]
+if [ -d "$poezio_dir/.git" ]
then
- args=$(git --git-dir="$(dirname $0)/.git" show --format='%h %ci' | head -n1)
+ args=$(git --git-dir="$poezio_dir/.git" show --format='%h %ci' | head -n1)
else
args="0.8.3-dev"
fi
-exec python3 -OO "$(dirname $0)/src/poezio.py" -v "$args" "$@"
+exec python3 -OO "$poezio_dir/src/poezio.py" -v "$args" "$@"