diff options
author | mathieui <mathieui@mathieui.net> | 2014-03-29 16:36:14 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2014-03-29 16:36:14 +0100 |
commit | 42769dd28feaf82ff3b803395d3f563188ab1484 (patch) | |
tree | 3fec212b2c0c5412056c4a508821a8bd21fa0917 | |
parent | c537485c0d8ad28563195914b8af0984c71caca4 (diff) | |
download | poezio-42769dd28feaf82ff3b803395d3f563188ab1484.tar.gz poezio-42769dd28feaf82ff3b803395d3f563188ab1484.tar.bz2 poezio-42769dd28feaf82ff3b803395d3f563188ab1484.tar.xz poezio-42769dd28feaf82ff3b803395d3f563188ab1484.zip |
Make launch.sh runnable from any directory
-rwxr-xr-x | launch.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,10 +1,10 @@ #!/bin/sh -if [ -d "$PWD/.git" ] +if [ -d "$(dirname $0)/.git" ] then - args=$(git show --format='%h %ci' | head -n1) + args=$(git --git-dir="$(dirname $0)/.git" show --format='%h %ci' | head -n1) else args="0.8.3-dev" fi -exec python3 -OO src/poezio.py -v "$args" "$@" +exec python3 -OO "$(dirname $0)/src/poezio.py" -v "$args" "$@" |