Revision 13178
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/lib/sh/util.sh | ||
---|---|---|
148 | 148 |
|
149 | 149 |
#### commands |
150 | 150 |
|
151 |
is_callable() { type -t "$@" >/dev/null; }
|
|
151 |
is_callable() { type -t "$1" >/dev/null; }
|
|
152 | 152 |
|
153 | 153 |
is_extern() { test "$(type -t "$1")" = file; } |
154 | 154 |
|
Also available in: Unified diff
lib/sh/util.sh: is_callable(): use just $1 because multiple args are not applicable