From 7af7a80ccac05b24f4bbfae36fd768ef07f920d9 Mon Sep 17 00:00:00 2001 From: Landon Curt Noll Date: Sat, 6 Jul 2024 21:21:01 -0700 Subject: [PATCH] Use git ls-files to find files under git in bin/chk-entry.sh Thanks to @xexyl for the suggestion. Changed `bin/chk-entry.sh` VERSION from "1.1.7 2024-04-28" to VERSION="1.1.8 2024-07-06". Performed `make test` to test the above. --- bin/chk-entry.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/chk-entry.sh b/bin/chk-entry.sh index 537620ef7..2e31b72a2 100755 --- a/bin/chk-entry.sh +++ b/bin/chk-entry.sh @@ -83,7 +83,7 @@ shopt -s globstar # enable ** to match all files and zero or more directories an # set variables referenced in the usage message # -export VERSION="1.1.7 2024-04-28" +export VERSION="1.1.8 2024-07-06" NAME=$(basename "$0") export NAME export V_FLAG=0 @@ -449,7 +449,7 @@ fi # # We also add ioccc.css and var.mk from the top level. # -find "$ENTRY_PATH" -type f ! -iname .DS_Store ! -iname '.*.swp' ! -iname '*~' -print > "$TMP_FILE_LIST" +git ls-files "$ENTRY_PATH" > "$TMP_FILE_LIST" status="$?" if [[ $status -ne 0 ]]; then echo "$0: ERROR: find $ENTRY_PATH -type f -print > $TMP_FILE_LIST failed, error: $status" 1>&2