Project

General

Profile

« Previous | Next » 

Revision 8857

lib/util.sh: added set_inv ()

View differences:

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