fix: Make hooks bash 3.2 compatible (#339)

This commit is contained in:
Maksym Vlasov 2022-03-31 15:38:51 +03:00 committed by GitHub
commit 4ad825d8d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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