expo / turtle

Standalone app builder service
MIT License
384 stars 29 forks source link

Verify jq installation in scripts #281

Closed brentvatne closed 3 years ago

brentvatne commented 3 years ago

Checklist

Motivation and Context

I went to deploy a release from a relatively fresh machine and ended up in this state:

⠙ yarn release:update:turtle-cli-example
$ ./scripts/updateTurtleCliExampleRepo.sh
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
✖ yarn release:update:turtle-cli-example
ERROR ./scripts/updateTurtleCliExampleRepo.sh: line 17: jq: command not found
error Command failed with exit code 127.

Rolling back changes...
error Command failed with exit code 1.

It was pretty unclear how I could recover from this, and so it's best to avoid getting into this state if possible.

Description

I added some verification that the jq executable is available and bail out if not.