From 26f03b9f9511d6a77aacaef6499487c715ab962a Mon Sep 17 00:00:00 2001 From: Chris Reynolds Date: Tue, 6 Feb 2024 11:17:06 -0700 Subject: [PATCH] fix download function for shellcheck --- bin/install-local-tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/install-local-tests.sh b/bin/install-local-tests.sh index 4b62353..b3c1624 100755 --- a/bin/install-local-tests.sh +++ b/bin/install-local-tests.sh @@ -21,9 +21,9 @@ usage() { } download() { - if [ `which curl` ]; then + if [ "$(which curl)" ]; then curl -s "$1" > "$2"; - elif [ `which wget` ]; then + elif [ "$(which wget)" ]; then wget -nv -O "$2" "$1" fi }