-
Notifications
You must be signed in to change notification settings - Fork 235
Closed
Description
Since 8.2.0:
$ heroku --version
heroku/8.1.9 darwin-x64 node-v16.19.0
$ heroku run -x -- 'bash -c "exit 2"' || echo $?
Running bash -c "exit 2" on ⬢ sushi... up, run.6915 (Standard-1X)
› Error: Process exited with code 2
› Code: 2
2$ heroku update --version 8.2.0
…
$ heroku --version
heroku/8.2.0 darwin-x64 node-v16.19.0
$ heroku run -x -- 'bash -c "exit 2"' || echo $?
Running bash -c "exit 2" on ⬢ sushi... up, run.7202
Error: Process exited with code 2
1$ heroku update
…
$ heroku --version
heroku/8.4.2 darwin-x64 node-v16.19.0
$ heroku run -x -- 'bash -c "exit 2"' || echo $?
Running bash -c "exit 2" on ⬢ sushi... up, run.2600 (Standard-1X)
Error: Process exited with code 2
1Note: you have to use bash -c "exit 2" as the command; simply using exit 2 will terminate the shell and then the internal echo of the status code for later reading will not execute:
cli/packages/run-v5/lib/dyno.js
Line 54 in b451c6b
| let command = this.opts['exit-code'] ? `${this.opts.command}; echo "\uFFFF heroku-command-exit-status: $?"` : this.opts.command |
exit 2; echo "\uFFFF heroku-command-exit-status: $? vs bash -c "exit 2"; echo "\uFFFF heroku-command-exit-status: $?).Metadata
Metadata
Assignees
Labels
No labels