summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2018-08-19 23:02:39 +0100
committerMaxime “pep” Buquet <pep@bouah.net>2018-08-20 00:02:15 +0100
commita6f840e7baa679420031fa42006479a691d3ec7a (patch)
tree89d21941ad97db22798673114ddcb30c3cc0a083
parent9238ee2e1a81738eeaca7b3f0c756d8b1ba7c374 (diff)
downloadpoezio-a6f840e7baa679420031fa42006479a691d3ec7a.tar.gz
poezio-a6f840e7baa679420031fa42006479a691d3ec7a.tar.bz2
poezio-a6f840e7baa679420031fa42006479a691d3ec7a.tar.xz
poezio-a6f840e7baa679420031fa42006479a691d3ec7a.zip
Only check if `.git` exists, not more
`git worktree` has `.git` as a file, not a directory. Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rwxr-xr-xlaunch.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/launch.sh b/launch.sh
index c88972f0..44d9261f 100755
--- a/launch.sh
+++ b/launch.sh
@@ -5,7 +5,7 @@ then
POEZIO_VENV="poezio-venv"
fi
-if [ -d .git ]
+if [ -e .git ]
then
args=$(git show --format='%h %ci' | head -n1)
else