Revision 9001
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/util.sh | ||
---|---|---|
12 | 12 |
test $# -ge 1 || set -- "${BASH_SOURCE[1]}" |
13 | 13 |
local include_guard="$(include_guard_var "$1")" |
14 | 14 |
alias self_being_included=false |
15 |
test -z "${!include_guard+t}" && \ |
|
15 |
test -z "${!include_guard+isset}" && \
|
|
16 | 16 |
{ eval "$include_guard"=1; alias self_being_included=true; } |
17 | 17 |
} |
18 | 18 |
|
Also available in: Unified diff
*{.sh,run}: use ${var+isset} instead of ${var+t} for clarity