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