mirror of
https://github.com/pstadler/metrics.sh.git
synced 2025-02-28 22:09:11 -05:00
6 lines
125 B
Bash
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$'
|
|
} |