Skip to content

Commit

Permalink
cli(installer): add -f flag to curl (fix hasura#1871) (hasura#3477)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishra0 authored and polRk committed Feb 12, 2020
1 parent 128b11c commit 1166353
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ fi
log "Getting latest version..."

# adapted from https://github.com/openfaas/faas-cli/blob/master/get.sh
version=$(curl -s -H 'Content-Type: text/plain' https://releases.hasura.io/graphql-engine?agent=cli-get.sh)
version=$(curl -s -f -H 'Content-Type: text/plain' https://releases.hasura.io/graphql-engine?agent=cli-get.sh)
if [ ! $version ]; then
log "${YELLOW}"
log "Failed while attempting to install hasura graphql-engine cli. Please manually install:"
Expand Down Expand Up @@ -92,7 +92,7 @@ fi
log "${PURPLE}Downloading hasura for $platform-$arch to ${targetFile}${NC}"
url=https://github.com/hasura/graphql-engine/releases/download/$version/cli-hasura$suffix

try curl -L# -o $targetFile "$url"
try curl -L# -f -o $targetFile "$url"
try chmod +x $targetFile

log "${GREEN}Download complete!${NC}"
Expand Down

0 comments on commit 1166353

Please sign in to comment.