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:
1 parent
e73b084d20
commit
e227f77f59
2 files changed
+2
-4
No files matched your search
@@ -12,9 +12,7 @@ fi
|
|||||||
|
|
||||||
# let user change the sleep duration if they wish
|
# let user change the sleep duration if they wish
|
||||||
#
|
#
|
||||||
if [[ -z "$SLEEP" ]]; then
|
[[ -z "$SLEEP" ]] && SLEEP=1000
|
||||||
SLEEP=1000
|
|
||||||
fi
|
|
||||||
|
|
||||||
# let user change the number if they wish to
|
# let user change the number if they wish to
|
||||||
#
|
#
|
||||||
|
|||||||
+1
-1
@@ -26,7 +26,7 @@ else
|
|||||||
ARG="$2"
|
ARG="$2"
|
||||||
fi
|
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 screen after compilation so that only the entry is shown
|
||||||
clear
|
clear
|
||||||
|
|||||||
Reference in new issue
Block a user