From a6f840e7baa679420031fa42006479a691d3ec7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sun, 19 Aug 2018 23:02:39 +0100 Subject: [PATCH] Only check if `.git` exists, not more MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `git worktree` has `.git` as a file, not a directory. Signed-off-by: Maxime “pep” Buquet --- launch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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