mirror of
https://github.com/pstadler/metrics.sh.git
synced 2025-11-08 21:24:54 -05:00
add --update option. minor fixes
This commit is contained in:
@@ -3,4 +3,8 @@
|
||||
# this is bad, but `declare -f -F` is not portable
|
||||
is_function () {
|
||||
type $1 2> /dev/null | grep -q 'function$'
|
||||
}
|
||||
}
|
||||
|
||||
command_exists () {
|
||||
type $1 > /dev/null 2>&1
|
||||
}
|
||||
|
||||
@@ -25,4 +25,4 @@ unique_id () {
|
||||
|
||||
print_prefixed () {
|
||||
printf "$2" | sed -e "s/^/$1/g"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user