Revision 8857
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/util.sh | ||
---|---|---|
87 | 87 |
|
88 | 88 |
set_var () { eval "$1"'="$2"'; } |
89 | 89 |
|
90 |
set_inv () { set_var no_"$1" "$(test -n "${!1}" || echo 1)"; } |
|
91 |
|
|
90 | 92 |
#### commands |
91 | 93 |
|
92 | 94 |
top_dir="$(dirname "$0")" # outermost script |
Also available in: Unified diff
lib/util.sh: added set_inv ()