metrics.sh/lib/utils/functions.sh
2015-03-15 21:04:06 +01:00

6 lines
125 B
Bash

#!/bin/sh
# this is bad, but `declare -f -F` is not portable
is_function () {
type $1 2> /dev/null | grep -q 'function$'
}