Skip to content

Commit

Permalink
fix: Make hooks bash 3.2 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxymVlasov committed Feb 10, 2022
1 parent c2d1a58 commit 48bc03c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/_common.sh
Original file line number Diff line number Diff line change
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 48bc03c

Please sign in to comment.