improve use of chkentry by cvt-submission.sh
Modified `bin/cvt-submission.sh` to use `chkentry(1)` on submissions that are about to be converted into an entry, by using `-P` to ignore permissions. We also ignore any `.DS_Store` files found as they will not be committed to the repo (because of the top level `.gitignore` file). Changed `bin/cvt-submission.sh` VERSION from "2.2.0 2025-06-29" to "2.2.1 2025-06-29".
This commit is contained in:
1 parent
45f1dd0abd
commit
f510f36270
1 file changed
+5
-5
@@ -124,7 +124,7 @@ export LC_ALL="C"
|
|||||||
|
|
||||||
# set variables referenced in the usage message
|
# set variables referenced in the usage message
|
||||||
#
|
#
|
||||||
export VERSION="2.2.0 2025-06-29"
|
export VERSION="2.2.1 2025-06-29"
|
||||||
NAME=$(basename "$0")
|
NAME=$(basename "$0")
|
||||||
export NAME
|
export NAME
|
||||||
export V_FLAG=0
|
export V_FLAG=0
|
||||||
@@ -1453,21 +1453,21 @@ if [[ $V_FLAG -ge 1 ]]; then
|
|||||||
"-i .auth.json.xz -i .prev -i .submit.sh -i .txz -i .num.sh -i .orig" \
|
"-i .auth.json.xz -i .prev -i .submit.sh -i .txz -i .num.sh -i .orig" \
|
||||||
"-i .path -i README.md -i .gitignore -- $YYYY_DIR" 1>&2
|
"-i .path -i README.md -i .gitignore -- $YYYY_DIR" 1>&2
|
||||||
"$CHKENTRY_TOOL" -v 1 -i .auth.json.xz -i .prev -i .submit.sh -i .txz -i .num.sh -i .orig \
|
"$CHKENTRY_TOOL" -v 1 -i .auth.json.xz -i .prev -i .submit.sh -i .txz -i .num.sh -i .orig \
|
||||||
-i .path -i README.md -i .gitignore -- "$YYYY_DIR"
|
-i .path -i README.md -i .gitignore -i .DS_Store -P -- "$YYYY_DIR"
|
||||||
status="$?"
|
status="$?"
|
||||||
if [[ $status -ne 0 ]]; then
|
if [[ $status -ne 0 ]]; then
|
||||||
echo "$0: ERROR: $CHKENTRY_TOOL -v 1 -i .auth.json.xz -i .prev -i .submit.sh -i .txz -i .num.sh -i .orig" \
|
echo "$0: ERROR: $CHKENTRY_TOOL -v 1 -i .auth.json.xz -i .prev -i .submit.sh -i .txz -i .num.sh -i .orig" \
|
||||||
"-i .path -i README.md -i .gitignore -- $YYYY_DIR failed," \
|
"-i .path -i README.md -i .gitignore -i .DS_Store -P -- $YYYY_DIR failed," \
|
||||||
"error code: $status" 1>&2
|
"error code: $status" 1>&2
|
||||||
exit 7
|
exit 7
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
"$CHKENTRY_TOOL" -i .auth.json.xz -i .prev -i .submit.sh -i .txz -i .num.sh -i .orig \
|
"$CHKENTRY_TOOL" -i .auth.json.xz -i .prev -i .submit.sh -i .txz -i .num.sh -i .orig \
|
||||||
-i .path -i README.md -i .gitignore -- "$YYYY_DIR"
|
-i .path -i README.md -i .gitignore -i .DS_Store -P -- "$YYYY_DIR"
|
||||||
status="$?"
|
status="$?"
|
||||||
if [[ $status -ne 0 ]]; then
|
if [[ $status -ne 0 ]]; then
|
||||||
echo "$0: $CHKENTRY_TOOL -i .auth.json.xz -i .prev -i .submit.sh -i .txz -i .num.sh -i .orig" \
|
echo "$0: $CHKENTRY_TOOL -i .auth.json.xz -i .prev -i .submit.sh -i .txz -i .num.sh -i .orig" \
|
||||||
"-i .path -i README.md -i .gitignore -- $YYYY_DIR failed," \
|
"-i .path -i README.md -i .gitignore -i .DS_Store -P -- $YYYY_DIR failed," \
|
||||||
"error code: $status" 1>&2
|
"error code: $status" 1>&2
|
||||||
exit 7
|
exit 7
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user