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