Deal with shellcheck warnings in 1993/plummer

This was only in try.sh: SLEEP is not needed which is why the error was
not detected. SLEEP is only relevant to the alt code. But the try.alt.sh
was updated to make it shorter for assigning the default:

    [[ -z "$SLEEP" ]] && SLEEP=1000

1000 is the default in the Makefile.
This commit is contained in:
Cody Boone Ferguson committed 2024-01-21 05:02:49 -08:00
1 parent e73b084d20
commit e227f77f59
2 files changed
+2 -4

No files matched your search

+1 -3
View File
@@ -12,9 +12,7 @@ fi
# let user change the sleep duration if they wish
#
if [[ -z "$SLEEP" ]]; then
SLEEP=1000
fi
[[ -z "$SLEEP" ]] && SLEEP=1000
# let user change the number if they wish to
#
+1 -1
View File
@@ -26,7 +26,7 @@ else
ARG="$2"
fi
make CC="$CC" SLEEP="$SLEEP" all >/dev/null || exit 1
make CC="$CC" all >/dev/null || exit 1
# clear screen after compilation so that only the entry is shown
clear