From 324c2cb63bab2bc97306b9d94c408d89b8b5fd56 Mon Sep 17 00:00:00 2001 From: James Telfer <792299+jamestelfer@users.noreply.github.com> Date: Thu, 11 Apr 2024 15:51:43 +1000 Subject: [PATCH] fix: use more compatible arithmetic syntax Bash strikes again. --- hooks/environment | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/environment b/hooks/environment index eeda809..f58c780 100755 --- a/hooks/environment +++ b/hooks/environment @@ -20,7 +20,7 @@ git_config_add() { count="${GIT_CONFIG_COUNT:-0}" # count is incremented each time a setting is added - (( count++ )) + (( count = count + 1 )) export GIT_CONFIG_COUNT="${count}" export "GIT_CONFIG_KEY_${count}=${key}"