Revision 8953
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/util.sh | ||
---|---|---|
1 | 1 |
#!/bin/bash -e |
2 | 2 |
set -o errexit # in case caller did not have -e in #! line |
3 | 3 |
|
4 |
function extern () { (unset -f "$1"; "$@" || exit) || exit; }
|
|
4 |
function extern () { (unset -f "$1"; "$@") || exit; } |
|
5 | 5 |
|
6 | 6 |
realpath () { readlink -f -- "$1"; } |
7 | 7 |
|
Also available in: Unified diff
lib/util.sh: extern (): removed the `|| exit` inside the (), because this strangely prevents the exit status from being propagated to the exit status of the ()