Skip to content

Commit 4ad825d

Browse files
authored
fix: Make hooks bash 3.2 compatible (antonbabenko#339)
1 parent 7e6c287 commit 4ad825d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hooks/_common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function common::initialize {
2727
function common::parse_cmdline {
2828
# common global arrays.
2929
# Populated via `common::parse_cmdline` and can be used inside hooks' functions
30-
declare -g -a ARGS=() HOOK_CONFIG=() FILES=()
30+
ARGS=() HOOK_CONFIG=() FILES=()
3131

3232
local argv
3333
argv=$(getopt -o a:,h: --long args:,hook-config: -- "$@") || return

0 commit comments

Comments
 (0)