Skip to content

Commit

Permalink
fix: use more compatible arithmetic syntax
Browse files Browse the repository at this point in the history
Bash strikes again.
  • Loading branch information
jamestelfer committed Apr 11, 2024
1 parent 953a0ce commit 324c2cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/environment
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 324c2cb

Please sign in to comment.