add --update option. minor fixes

This commit is contained in:
Patrick Stadler
2015-03-22 13:55:14 +01:00
parent b508c27b64
commit c4246b9ab0
4 changed files with 35 additions and 13 deletions

View File

@@ -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
}

View File

@@ -25,4 +25,4 @@ unique_id () {
print_prefixed () {
printf "$2" | sed -e "s/^/$1/g"
}
}