diff --git a/hooks/_common.sh b/hooks/_common.sh index 8011e45..3ff717d 100644 --- a/hooks/_common.sh +++ b/hooks/_common.sh @@ -27,7 +27,7 @@ function common::initialize { function common::parse_cmdline { # common global arrays. # Populated via `common::parse_cmdline` and can be used inside hooks' functions - declare -g -a ARGS=() HOOK_CONFIG=() FILES=() + ARGS=() HOOK_CONFIG=() FILES=() local argv argv=$(getopt -o a:,h: --long args:,hook-config: -- "$@") || return