From d5848dfddc451875e3d7cacc6a1a8b99ce3e9fc6 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Mon, 22 Jul 2024 12:02:33 -0700 Subject: [PATCH] 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'. --- bin/new-year.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/new-year.sh b/bin/new-year.sh index 0840e474f..fcc4e8117 100755 --- a/bin/new-year.sh +++ b/bin/new-year.sh @@ -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