You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the bash setting -u is set to fail on usage of undefined variables, the task helper exits after execution.
Expected Behavior
That it doesn't.
Steps to Reproduce
Create a task.
Use set -euo pipefail.
Environment
Version: 2.0.0
Platform: Debian 12
Additional Context
The error doesn't happen when using e.g. set -eo pipefail.
While testing, I noticed that it does not happen when the there is at least one task-output command between the source call and set -euo pipefail, that is:
source bash_task_helper/files/task_helper.sh
echo foo
set -euo pipefail
task-succeed baz
does not work, but
source bash_task_helper/files/task_helper.sh
task-output foo bar
set -euo pipefail
task-succeed baz
Describe the Bug
When the bash setting
-u
is set to fail on usage of undefined variables, the task helper exits after execution.Expected Behavior
That it doesn't.
Steps to Reproduce
set -euo pipefail
.Environment
Additional Context
The error doesn't happen when using e.g.
set -eo pipefail
.While testing, I noticed that it does not happen when the there is at least one
task-output
command between thesource
call andset -euo pipefail
, that is:does not work, but
works:
The text was updated successfully, but these errors were encountered: