Revision 8859
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/util.sh | ||
---|---|---|
89 | 89 |
|
90 | 90 |
set_inv () { set_var no_"$1" "$(test -n "${!1}" || echo 1)"; } |
91 | 91 |
|
92 |
# usage: local var=...; local_inv |
|
93 |
alias local_inv='local "no_$var=$(test -n "${!var}" || echo 1)"' |
|
94 |
|
|
92 | 95 |
#### commands |
93 | 96 |
|
94 | 97 |
top_dir="$(dirname "$0")" # outermost script |
Also available in: Unified diff
lib/util.sh: added local_inv alias