mirror of
https://github.com/hashicorp/packer.git
synced 2026-02-26 11:32:04 -05:00
Since the build.sh script runs with `set -e` (exit _immediately_ in case
of error), we cannot first call the `which` command and, on a susequent
line, check its exit status with $?, it would be too late. Instead, we
idiomatically check on the same line of the invocation of `which`.
From the confusing:
$ make bin
==> Checking for necessary tools...
make: *** [bin] Error 1
To the informative:
$ make bin
==> Checking for necessary tools...
realpath is not on the path. Exiting...
make: *** [bin] Error 1
|
||
|---|---|---|
| .. | ||
| build.ps1 | ||
| build.sh | ||
| codesign_example.sh | ||
| dist.sh | ||
| generate-plugins.go | ||
| off_gopath.sh | ||
| prepare_changelog.sh | ||
| sign.sh | ||
| sort-md-list.py | ||
| vagrant-freebsd-priv-config.sh | ||
| vagrant-freebsd-unpriv-bootstrap.sh | ||
| vagrant-linux-priv-config.sh | ||
| vagrant-linux-priv-go.sh | ||
| vagrant-linux-unpriv-bootstrap.sh | ||