summaryrefslogtreecommitdiff
path: root/sh/functions.sh.in
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-04-21 17:32:17 +0000
committerRoy Marples <roy@marples.name>2008-04-21 17:32:17 +0000
commitdf8eeba2fb5b0dc460b5f6aac5dafc380e17242e (patch)
treeb45e915b1a7a1be69b75a118b7ea677cc469c996 /sh/functions.sh.in
parent54fce42c6f1ef8f834f5878b35e9dcab0cfe0b08 (diff)
downloadopenrc-df8eeba2fb5b0dc460b5f6aac5dafc380e17242e.tar.gz
openrc-df8eeba2fb5b0dc460b5f6aac5dafc380e17242e.tar.bz2
openrc-df8eeba2fb5b0dc460b5f6aac5dafc380e17242e.tar.xz
Punt is_function in favour of POSIX shell builtin command, thanks to Harald van Dijk for the idea.
Diffstat (limited to 'sh/functions.sh.in')
-rw-r--r--sh/functions.sh.in9
1 files changed, 0 insertions, 9 deletions
diff --git a/sh/functions.sh.in b/sh/functions.sh.in
index 8b7356a..57917ed 100644
--- a/sh/functions.sh.in
+++ b/sh/functions.sh.in
@@ -20,15 +20,6 @@ eoutdent()
return 0
}
-is_function()
-{
- if [ -n "${BASH_VERSION}" ]; then
- [ "$(type -t "$1")" = "function" ]
- else
- [ "$(type "$1" 2>/dev/null)" = "$1 is a shell function" ]
- fi
-}
-
yesno()
{
[ -z "$1" ] && return 1