Revision 8952
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/util.sh | ||
---|---|---|
1 | 1 |
#!/bin/bash -e |
2 |
set -o errexit # in case caller did not have -e in #! line |
|
3 |
|
|
2 | 4 |
function extern () { (unset -f "$1"; "$@" || exit) || exit; } |
3 | 5 |
|
4 | 6 |
realpath () { readlink -f -- "$1"; } |
Also available in: Unified diff
lib/util.sh: added explicit `set -o errexit` in case caller did not have -e in #! line