Revision 9024
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/util.sh | ||
---|---|---|
83 | 83 |
|
84 | 84 |
#### functions |
85 | 85 |
|
86 |
func_exists () { declare -f "$1" >/dev/null; } |
|
87 |
|
|
86 | 88 |
copy_func () # usage: from=... to=... copy_func |
87 | 89 |
{ |
88 | 90 |
: "${from:?}" "${to:?}" |
Also available in: Unified diff
lib/sh/util.sh: added func_exists ()