Project

General

Profile

« Previous | Next » 

Revision 12693

lib/sh/util.sh: added is_callable()

View differences:

trunk/lib/sh/util.sh
140 140

  
141 141
#### commands
142 142

  
143
is_callable() { type -t "$@" >/dev/null; }
144

  
143 145
is_dot_script() { echo_func; test "${BASH_LINENO[${#BASH_LINENO[@]}-1]}" != 0; }
144 146

  
145 147
require_dot_script() # usage: require_dot_script || return

Also available in: Unified diff