Skip to content

Commit efd953c

Browse files
committed
Use printf and split repl.txt files correctly
1 parent 090b1cc commit efd953c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/lint_changed_files.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ jobs:
117117
files=$(echo "${{ steps.changed-files.outputs.all_changed_files }}" | tr ' ' '\n' | grep 'package\.json$' | grep -v 'datapackage\.json$' | tr '\n' ' ' | sed 's/ $//')
118118
if [ -n "${files}" ]; then
119119
echo "Linting package.json files that have changed..."
120-
echo "${files}" | "${lint_package_json}" --split=" "
120+
printf "${files}" | "${lint_package_json}" --split=" "
121121
else
122122
echo "No package.json files to lint."
123123
fi
@@ -134,7 +134,7 @@ jobs:
134134
135135
files=$(echo ${{ steps.changed-files.outputs.all_changed_files }} | tr ' ' '\n' | grep 'repl\.txt$' | tr '\n' ' ' | sed 's/ $//')
136136
if [ -n "${files}" ]; then
137-
echo "${files}" | "${lint_repl_help}"
137+
printf "${files}" | "${lint_repl_help}" --split=" "
138138
fi
139139
140140
# Lint JavaScript files:

0 commit comments

Comments
 (0)