Use a different method to suppress output of the which command

This commit is contained in:
Eric Herot 2018-11-28 17:12:25 -05:00
parent 487d00c27b
commit 6c3356b630
1 changed files with 2 additions and 2 deletions

View File

@ -93,9 +93,9 @@ printf " ✅ \n"
addon=cluster-autoscaler.yml
manifest_url=https://raw.githubusercontent.com/kubernetes/kops/master/addons/cluster-autoscaler/v1.8.0.yaml
if which -s wget; then
if [[ $(which wget) ]]; then
wget -O ${addon} ${manifest_url}
elif which -s curl; then
elif [[ $(which curl) ]]; then
curl -s -o ${addon} ${manifest_url}
else
echo "No curl or wget available. Can't get the manifest."