torwaechter: fix bug in tuergit hook script that prevent script from executing
authorBernhard Tittelbach <bernhard@tittelbach.org>
Wed, 9 Sep 2020 22:28:58 +0000 (00:28 +0200)
committerBernhard Tittelbach <bernhard@tittelbach.org>
Wed, 9 Sep 2020 22:28:58 +0000 (00:28 +0200)
ansible/files/torwaechter/post-receive

index c1fdc54..ec6070b 100755 (executable)
@@ -5,9 +5,9 @@
 
 set -eu
 
-keys_branch=$(git config hooks.keys_branch 2>/dev/null)
-keys_file=$(git config hooks.keys_file 2>/dev/null)
-keys_pipe_to=$(git config hooks.keys_pipe_to 2>/dev/null)
+keys_branch=$(git config hooks.keys_branch 2>/dev/null || echo "")
+keys_file=$(git config hooks.keys_file 2>/dev/null || echo "")
+keys_pipe_to=$(git config hooks.keys_pipe_to 2>/dev/null || echo "")
 
 keys_branch=${keys_branch:-master}
 keys_file=${keys_file:-keys}