Bug fix in bin/new-year.sh

In a couple places the variable 'status' was checked for a value by
comparing that value to 'status' instead of '$status'.
This commit is contained in:
Cody Boone Ferguson committed 2024-07-22 12:02:33 -07:00
1 parent 1a019d7bf1
commit d5848dfddc
1 file changed
+2 -2
+2 -2
View File
@@ -381,7 +381,7 @@ if [[ -z $NOOP ]]; then
mv -f -- "$TMP_MAKEFILE" "$MAKE_FILE"
status="$?"
fi
if [[ status -ne 0 ]]; then
if [[ $status -ne 0 ]]; then
echo "$0: ERROR: mv -f -- $TMP_MAKEFILE $MAKE_FILE filed," \
"error code: $status" 1>&2
exit 13
@@ -400,7 +400,7 @@ if [[ -z $NOOP ]]; then
fi
make genpath >/dev/null
status="$?"
if [[ status -ne 0 ]]; then
if [[ $status -ne 0 ]]; then
echo "$0: ERROR: make genpath >/dev/null failed," \
"error code: $status" 1>&2
exit 15