Skip to content

Commit

Permalink
Expand arrays to single word when calling check_changes (#8)
Browse files Browse the repository at this point in the history
Otherwise array contents are passed as individual words and the input
parameters are mangled and lost.

Fixes #7

Signed-off-by: Antonin Bas <abas@vmware.com>
  • Loading branch information
antoninbas committed Mar 25, 2022
1 parent 66601f9 commit 51b9cae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'"
Expand Down

0 comments on commit 51b9cae

Please sign in to comment.