From 61418e10f7708bc04a58f0f88c785eb7fee4874a Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Mon, 16 Oct 2023 10:31:47 -0700 Subject: [PATCH] Removed space before ';'s in 1985/august/primes.sh --- 1985/august/primes.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/1985/august/primes.sh b/1985/august/primes.sh index 9cd9bdc8b..a7743ea07 100755 --- a/1985/august/primes.sh +++ b/1985/august/primes.sh @@ -8,14 +8,14 @@ PRIMES=$(type -P primes) COUNT=15 if [[ "$#" -ge 1 ]]; then COUNT="$1" - if ! [[ $COUNT =~ ^[0-9]+$ ]] ; then + if ! [[ $COUNT =~ ^[0-9]+$ ]]; then echo "not a number: $COUNT" 1>&2 exit 1 fi fi if [[ -n "$PRIMES" ]]; then - while read -r n ; do primes "$n" $((n + 1)) ; done < <((./august | head -n "$COUNT" )) + while read -r n; do primes "$n" $((n + 1)); done < <((./august | head -n "$COUNT" )) else echo "primes not installed" 1>&2 echo "See the following GitHub repo:" 1>&2