Skip to content

Commit

Permalink
fix download function for shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Feb 6, 2024
1 parent ecf626b commit 26f03b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/install-local-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 26f03b9

Please sign in to comment.