Revision 13174
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/lib/sh/util.sh | ||
---|---|---|
150 | 150 |
|
151 | 151 |
is_callable() { type -t "$@" >/dev/null; } |
152 | 152 |
|
153 |
is_extern() { test "$(type -t "$1")" = file; } |
|
154 |
|
|
153 | 155 |
is_dot_script() { echo_func; test "${BASH_LINENO[${#BASH_LINENO[@]}-1]}" != 0; } |
154 | 156 |
|
155 | 157 |
require_dot_script() # usage: require_dot_script || return |
Also available in: Unified diff
lib/sh/util.sh: added is_extern()