mirror of
https://github.com/hasura/graphql-engine.git
synced 2025-01-05 22:34:22 +03:00
parent
b183eba9ba
commit
0f89940383
@ -34,7 +34,7 @@ fi
|
|||||||
log "Getting latest version..."
|
log "Getting latest version..."
|
||||||
|
|
||||||
# adapted from https://github.com/openfaas/faas-cli/blob/master/get.sh
|
# 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
|
if [ ! $version ]; then
|
||||||
log "${YELLOW}"
|
log "${YELLOW}"
|
||||||
log "Failed while attempting to install hasura graphql-engine cli. Please manually install:"
|
log "Failed while attempting to install hasura graphql-engine cli. Please manually install:"
|
||||||
@ -92,7 +92,7 @@ fi
|
|||||||
log "${PURPLE}Downloading hasura for $platform-$arch to ${targetFile}${NC}"
|
log "${PURPLE}Downloading hasura for $platform-$arch to ${targetFile}${NC}"
|
||||||
url=https://github.com/hasura/graphql-engine/releases/download/$version/cli-hasura$suffix
|
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
|
try chmod +x $targetFile
|
||||||
|
|
||||||
log "${GREEN}Download complete!${NC}"
|
log "${GREEN}Download complete!${NC}"
|
||||||
|
Loading…
Reference in New Issue
Block a user