From 51b9caea540a74dd60b4cd1c850f08353d08e47f Mon Sep 17 00:00:00 2001 From: Antonin Bas Date: Fri, 25 Mar 2022 11:08:49 -0700 Subject: [PATCH] Expand arrays to single word when calling check_changes (#8) Otherwise array contents are passed as individual words and the input parameters are mangled and lost. Fixes #7 Signed-off-by: Antonin Bas --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index f8a5a33..a6ab337 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -51,7 +51,7 @@ if [[ $rc -ne 0 ]]; then exit 0 fi -has_changes=$(check_changes "$CHANGED_FILES" "${PATTERNS[@]}" "${IGNORE_PATTERNS[@]}") +has_changes=$(check_changes "$CHANGED_FILES" "${PATTERNS[*]}" "${IGNORE_PATTERNS[*]}") if $has_changes; then echo "Setting 'has_changes' to 'yes'"