Commit 42769dd2 authored by mathieui's avatar mathieui

Make launch.sh runnable from any directory

parent c537485c
#!/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" "$@"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment