From 45e8c3e5df0aaca3ecfb55e03f35170e79171eb4 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Fri, 29 Dec 2023 08:12:18 -0800 Subject: [PATCH] Typo fixes in scripts in tmp/ There are certainly more including some I encountered yesterday that are not fixed but these can be fixed later on. These are just quick (and incomplete) looks at some of the scripts. --- tmp/gen_author_json.sh | 10 +++++----- tmp/gen_path_list.found.sh | 4 ++-- tmp/gen_winner_json.sh | 2 +- tmp/run_all.sh | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tmp/gen_author_json.sh b/tmp/gen_author_json.sh index 86b717dfa..930fce83a 100755 --- a/tmp/gen_author_json.sh +++ b/tmp/gen_author_json.sh @@ -6,7 +6,7 @@ # tmp/author_handle.txt and tmp/author.csv and tmp/author-wins.csv. # # XXX - This is a temporary utility that will be replaced when -# the .winner.json files are built +# the .winner.json files are built. # # Copyright (c) 2023 by Landon Curt Noll. All Rights Reserved. # @@ -92,7 +92,7 @@ while getopts :hv:Vt: flag; do echo 1>&2 echo "$USAGE" 1>&2 ;; - *) echo "$0: ERROR: -t optarg must be of the form tool=path" 1>&2 + *) echo "$0: ERROR: -t optarg must be of the form -t tool=path" 1>&2 echo 1>&2 echo "$USAGE" 1>&2 exit 3 @@ -143,7 +143,7 @@ if [[ ! -r $AUTHOR_CSV ]]; then fi export AUTHOR_WINS="$3" if [[ ! -r $AUTHOR_WINS ]]; then - echo "$0: ERROR: author-wins.csv.txt not a readable file: $AUTHOR_WINS" + echo "$0: ERROR: author-wins.csv not a readable file: $AUTHOR_WINS" exit 4 fi export AUTHOR_DIR="$4" @@ -170,7 +170,7 @@ if [[ ! -e $JSTRENCODE ]]; then exit 6 fi if [[ ! -f $JSTRENCODE ]]; then - echo "$0: ERROR: jstrencode is not a file: $JSTRENCODE" 1>&2 + echo "$0: ERROR: jstrencode is not a regular file: $JSTRENCODE" 1>&2 exit 6 fi if [[ ! -x $JSTRENCODE ]]; then @@ -182,7 +182,7 @@ if [[ ! -e $LOCATION ]]; then exit 6 fi if [[ ! -f $LOCATION ]]; then - echo "$0: ERROR: location is not a file: $LOCATION" 1>&2 + echo "$0: ERROR: location is not a regular file: $LOCATION" 1>&2 exit 6 fi if [[ ! -x $LOCATION ]]; then diff --git a/tmp/gen_path_list.found.sh b/tmp/gen_path_list.found.sh index c5339e06d..3572c6130 100755 --- a/tmp/gen_path_list.found.sh +++ b/tmp/gen_path_list.found.sh @@ -4,7 +4,7 @@ # directories under a year # # XXX - This is a temporary utility that will be replaced when -# the .winner.json files are built +# the .winner.json files are built. # # Copyright (c) 2023 by Landon Curt Noll. All Rights Reserved. # @@ -137,7 +137,7 @@ if [[ $status -ne 0 ]]; then exit 11 fi -# find files under 4 character dirs +# find files under 4 character dirs that aren't .DS_Store or *.dSYM with a depth of at least 2 # TMPFILE="tmp/tmp.path_list.found.txt.$$" trap 'rm -f $TMPFILE; exit' 0 1 2 3 15 diff --git a/tmp/gen_winner_json.sh b/tmp/gen_winner_json.sh index c530ec3ea..bfcd3cbf1 100755 --- a/tmp/gen_winner_json.sh +++ b/tmp/gen_winner_json.sh @@ -3,7 +3,7 @@ # gen_winner_json.sh - generate .winner.json and inventory.html for a winner # # XXX - This is a temporary utility that will be replaced when -# the .winner.json files are built +# the .winner.json files are built. # # Copyright (c) 2023 by Landon Curt Noll. All Rights Reserved. # diff --git a/tmp/run_all.sh b/tmp/run_all.sh index 7c710d852..f21cf1a6f 100755 --- a/tmp/run_all.sh +++ b/tmp/run_all.sh @@ -153,7 +153,7 @@ if [[ ! -e $WINNER_DIR_TXT ]]; then exit 4 fi if [[ ! -f $WINNER_DIR_TXT ]]; then - echo "$0: ERROR: WINNER_DIR_TXT is not a file: $WINNER_DIR_TXT" 1>&2 + echo "$0: ERROR: WINNER_DIR_TXT is not a regular file: $WINNER_DIR_TXT" 1>&2 exit 4 fi if [[ ! -r $WINNER_DIR_TXT ]]; then