From 6ea1f8ee85a6a0fa1a346a8613abd2051bfc8aaf Mon Sep 17 00:00:00 2001 From: Greg King Date: Mon, 18 Apr 2022 19:25:48 -0400 Subject: [PATCH] Made the style-check scripts send their file lists to stderr. A complete list will be shown before make shows its error message. There will be less confusion about which lines are in the list. --- .github/checks/lastline.sh | 4 ++-- .github/checks/spaces.sh | 4 ++-- .github/checks/tabs.sh | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/checks/lastline.sh b/.github/checks/lastline.sh index 851a2cfc4..d80d2fb57 100755 --- a/.github/checks/lastline.sh +++ b/.github/checks/lastline.sh @@ -17,9 +17,9 @@ done` cd $OLDCWD if [ x"$FILES"x != xx ]; then - echo "error: found following files that have no newline at the end:" + echo "error: found following files that have no newline at the end:" >&2 for n in $FILES; do - echo $n + echo $n >&2 done exit -1 fi diff --git a/.github/checks/spaces.sh b/.github/checks/spaces.sh index d695beaba..945e9acc3 100755 --- a/.github/checks/spaces.sh +++ b/.github/checks/spaces.sh @@ -10,9 +10,9 @@ FILES=`find $CHECK_PATH -type f \( -name \*.inc -o -name Makefile -o -name \*.cf cd $OLDCWD if [ x"$FILES"x != xx ]; then - echo "error: found dangling spaces in the following files:" + echo "error: found dangling spaces in the following files:" >&2 for n in $FILES; do - echo $n + echo $n >&2 done exit -1 fi diff --git a/.github/checks/tabs.sh b/.github/checks/tabs.sh index 16f0280ae..1c32def17 100755 --- a/.github/checks/tabs.sh +++ b/.github/checks/tabs.sh @@ -10,9 +10,9 @@ FILES=`find $CHECK_PATH -type f \( \( -name \*.inc -a \! -name Makefile.inc \) - cd $OLDCWD if [ x"$FILES"x != xx ]; then - echo "error: found TABs in the following files:" + echo "error: found TABs in the following files:" >&2 for n in $FILES; do - echo $n + echo $n >&2 done exit -1 fi