Typo fixes in bin/gen-status.sh

This commit is contained in:
Cody Boone Ferguson committed 2024-06-14 10:29:37 -07:00
1 parent 8125a24fdb
commit daf92e1f41
1 file changed
+5 -5
+5 -5
View File
@@ -212,7 +212,7 @@ function output_modtime
# output_status_json # output_status_json
# #
# write an status.json file to standard output (stdout) # write a status.json file to standard output (stdout)
# #
# usage: # usage:
# output_status_json contest_status news.md status.json # output_status_json contest_status news.md status.json
@@ -261,19 +261,19 @@ function output_status_json
fi fi
STATUS_PATH="$3" STATUS_PATH="$3"
if [[ ! -e $STATUS_PATH ]]; then if [[ ! -e $STATUS_PATH ]]; then
echo "$0: ERROR: in output_status_json: status.json.html arg does not exist: $STATUS_PATH" 1>&2 echo "$0: ERROR: in output_status_json: status.json arg does not exist: $STATUS_PATH" 1>&2
return 6 return 6
fi fi
if [[ ! -f $STATUS_PATH ]]; then if [[ ! -f $STATUS_PATH ]]; then
echo "$0: ERROR: in output_status_json: status.json.html arg is not a file: $STATUS_PATH" 1>&2 echo "$0: ERROR: in output_status_json: status.json arg is not a file: $STATUS_PATH" 1>&2
return 7 return 7
fi fi
if [[ ! -r $STATUS_PATH ]]; then if [[ ! -r $STATUS_PATH ]]; then
echo "$0: ERROR: in output_status_json: status.json.html arg is not a readable file: $STATUS_PATH" 1>&2 echo "$0: ERROR: in output_status_json: status.json arg is not a readable file: $STATUS_PATH" 1>&2
return 8 return 8
fi fi
# obtain news.md.html file modification date # obtain news.md file modification date
# #
NEWS_MD_MOD_DATE=$(output_modtime "$NEWS_MD_PATH") NEWS_MD_MOD_DATE=$(output_modtime "$NEWS_MD_PATH")
status="$?" status="$?"