From 48bc03ca3f0f2f782d2f430069868019a6892062 Mon Sep 17 00:00:00 2001 From: MaxymVlasov Date: Thu, 10 Feb 2022 21:00:20 +0200 Subject: [PATCH 1/3] fix: Make hooks bash 3.2 compatible --- hooks/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/_common.sh b/hooks/_common.sh index 8011e45e1..3ff717dd0 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 From f0746033d1e79bf5e10ed6baa140ad99adbbe5c0 Mon Sep 17 00:00:00 2001 From: Maksym Vlasov Date: Thu, 10 Feb 2022 21:20:04 +0200 Subject: [PATCH 2/3] Update build-image-test.yaml --- .github/workflows/build-image-test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-image-test.yaml b/.github/workflows/build-image-test.yaml index c8aca3dec..082d2b091 100644 --- a/.github/workflows/build-image-test.yaml +++ b/.github/workflows/build-image-test.yaml @@ -19,7 +19,7 @@ jobs: Dockerfile - name: Build if Dockerfile changed - if: steps.changed-files-specific.outputs.any_changed == "true" + if: steps.changed-files-specific.outputs.any_changed == 'true' uses: docker/build-push-action@v2 with: context: . From 7d777d86a81e7c38927a65f5224f67d10b27189a Mon Sep 17 00:00:00 2001 From: Maksym Vlasov Date: Thu, 10 Feb 2022 21:25:01 +0200 Subject: [PATCH 3/3] Update hooks/_common.sh --- hooks/_common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/_common.sh b/hooks/_common.sh index 3ff717dd0..8011e45e1 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 - ARGS=() HOOK_CONFIG=() FILES=() + declare -g -a ARGS=() HOOK_CONFIG=() FILES=() local argv argv=$(getopt -o a:,h: --long args:,hook-config: -- "$@") || return