improve shellcheck comments

This commit is contained in:
Landon Curt Noll committed 2024-03-11 09:09:21 -07:00
1 parent fa2692b0ab
commit ed822ba74b
13 files changed
+87 -84

No files matched your search

+2 -3
View File
@@ -37,9 +37,8 @@ done
# it either.
while :; do
read -r -p "Enter a value (any non-digit = quit): "
# ^-- SC2143 (style): Use grep -q instead of comparing output with [ -n .. ].
# shellcheck disable=SC2143
if [[ $(echo "$REPLY" | grep -E '\<[0-9]+\>') ]]; then
GREP_REPLY=$(echo "$REPLY" | grep -E '\<[0-9]+\>')
if [[ -z $GREP_REPLY ]]; then
make clobber CC="$CC" SIZE="$REPLY" alt >/dev/null
./shapiro.alt
else