Project

General

Profile

« Previous | Next » 

Revision 11856

lib/sh/util.sh: added not(), for use in prefixing wrapped commands

View differences:

util.sh
58 58
function echo_vars() { :; }
59 59

  
60 60

  
61
#### logic
62

  
63
not() { ! "$@"; } # usage: wrapper_cmd not wrapped_cmd... # inverts exit status
64

  
65

  
61 66
#### vars
62 67

  
63 68
set_var() { eval "$1"'="$2"'; }

Also available in: Unified diff