Skip to content
This repository has been archived by the owner on Dec 30, 2024. It is now read-only.

Commit

Permalink
Use git ls-files to find files under git in bin/chk-entry.sh
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lcn2 committed Jul 7, 2024
1 parent 6aeb813 commit 7af7a80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/chk-entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7af7a80

Please sign in to comment.