<#1115 Fix `provision.sh` running a CLI error as a...
# osctrl
g
#1115 Fix `provision.sh` running a CLI error as a command Pull request opened by javuto Fix provision.sh running a CLI error as a command Problem On a vanilla Ubuntu 24.04,
make provision_dev
ended with:
Copy code
./deploy/provision.sh: line 683: ❌: command not found
make: *** [Makefile:317: provision_dev] Error 127
provision.sh
runs
eval $(osctrl-cli ... env node-actions -n "$ENVIRONMENT" quick-add)
to enroll the host. When
quick-add
fails, the CLI prints its error to stdout instead of the one-liner, and
eval
tries to run that error text as a command. The real error was hidden behind the shell's
command not found
. Change • `deploy/provision.sh`: capture the CLI output and check its exit status first. On failure, print the real error and exit 1. Only run
eval
when the CLI succeeded. • `cmd/cli`: send the final fatal error and the quick-add
❌
messages to stderr, so stdout carries only the one-liner. jmpsec/osctrl