Skip to content

Commit

Permalink
Use printf and split repl.txt files correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Planeshifter committed Oct 26, 2022
1 parent 090b1cc commit efd953c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint_changed_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ jobs:
files=$(echo "${{ steps.changed-files.outputs.all_changed_files }}" | tr ' ' '\n' | grep 'package\.json$' | grep -v 'datapackage\.json$' | tr '\n' ' ' | sed 's/ $//')
if [ -n "${files}" ]; then
echo "Linting package.json files that have changed..."
echo "${files}" | "${lint_package_json}" --split=" "
printf "${files}" | "${lint_package_json}" --split=" "
else
echo "No package.json files to lint."
fi
Expand All @@ -134,7 +134,7 @@ jobs:
files=$(echo ${{ steps.changed-files.outputs.all_changed_files }} | tr ' ' '\n' | grep 'repl\.txt$' | tr '\n' ' ' | sed 's/ $//')
if [ -n "${files}" ]; then
echo "${files}" | "${lint_repl_help}"
printf "${files}" | "${lint_repl_help}" --split=" "
fi
# Lint JavaScript files:
Expand Down

0 comments on commit efd953c

Please sign in to comment.