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.
This commit is contained in:
1 parent
d61a039ea7
commit
45e8c3e5df
4 files changed
+9
-9
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
#
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user