Skip to content

Commit be656c6

Browse files
committed
Fix bash syntax error in array filtering
1 parent 6d76801 commit be656c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/actions/run-linter/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ runs:
5050
echo "Changed files:"
5151
printf '%s\n' "${CHANGED_FILES[@]}"
5252
# Filter out any empty strings that may have been added to the array
53-
CHANGED_FILES=("${CHANGED_FILES[@]}" | grep -v '^$')
53+
readarray -t CHANGED_FILES < <(printf '%s\n' "${CHANGED_FILES[@]}" | grep -v '^$')
5454
if [[ "${#CHANGED_FILES[@]}" -eq 0 ]]; then
5555
echo "No changed cpp files after filtering."
5656
exit 0

0 commit comments

Comments
 (0)