We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1a87e46 + 7baa986 commit e411089Copy full SHA for e411089
src/utility/io.sh
@@ -76,10 +76,12 @@ function withCustomOutputInput() {
76
# same same if $withCustomOutputInput_fun should fail/exit, we don't setup a trap, the system should clean it up
77
rm "$withCustomOutputInput_tmpFile" || true
78
79
- $withCustomOutputInput_fun "$@"
+ local exitCode=0
80
+ $withCustomOutputInput_fun "$@" || exitCode=$?
81
82
eval "exec ${withCustomOutputInput_outputNr}>&-"
83
eval "exec ${withCustomOutputInput_inputNr}<&-"
84
+ return "$exitCode"
85
}
86
87
function deleteDirChmod777() {
0 commit comments