mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2025-10-15 17:38:54 +02:00
fix: Make hooks bash 3.2 compatible (#339)
This commit is contained in:
parent
7e6c287d16
commit
4ad825d8d3
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue