Skip to content

Commit

Permalink
Fix pipe bug
Browse files Browse the repository at this point in the history
  • Loading branch information
fionn committed Jul 26, 2024
1 parent 0b84ab0 commit 57a72a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-no-newlines
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function log_file {
file="$1"
echo "$file: no newline at end of file" >&2
if [[ "$GITHUB_ACTIONS" == "true" ]]; then
last_line=$(wc -l <<< "$file" | tr -d " ")
last_line=$(wc -l < "$file" | tr -d " ")
echo "::error file=$file,line=$last_line,col=0::No newline at end of file."
fi
}
Expand Down

0 comments on commit 57a72a4

Please sign in to comment.