Skip to content

Commit

Permalink
fix: Make hooks bash 3.2 compatible (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxymVlasov committed Mar 31, 2022
1 parent 7e6c287 commit 4ad825d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/_common.sh
Expand Up @@ -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
Expand Down

0 comments on commit 4ad825d

Please sign in to comment.