Skip to content

Commit

Permalink
Avoid passing options to echo
Browse files Browse the repository at this point in the history
This is undefined in POSIX shell.

Suggested-by: shellcheck
See-also: https://www.shellcheck.net/wiki/SC3037
  • Loading branch information
pabs3 authored and yairchu committed Jul 25, 2023
1 parent 29e43b2 commit 3f000c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/config/test
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ style=$(git config merge.conflictstyle)
if [ "$style" == "diff3" ]; then
echo "Conflict style set correctly"
else
echo '-s' did not set conflict style
echo The '-s' option did not set conflict style
exit 1
fi

Expand Down
2 changes: 1 addition & 1 deletion test/untabify/test
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ rm -rf .git
git init >/dev/null
git config user.email [email protected]
git config user.name Test
echo -e 'Hello\tBooya' > file
printf 'Hello\tBooya\n' > file
git add -- file
git commit -m"tabs" >/dev/null
echo 'Extra line' >> file
Expand Down

0 comments on commit 3f000c3

Please sign in to comment.