From 7eddfe50746b1f1771046524a1ea57220a0c0542 Mon Sep 17 00:00:00 2001 From: fatalerrors Date: Wed, 1 Dec 2021 10:53:49 +0100 Subject: [PATCH] utils.sh: fixed function_exists implementation --- lib/utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.sh b/lib/utils.sh index 6646e26..fc76fa3 100644 --- a/lib/utils.sh +++ b/lib/utils.sh @@ -21,7 +21,7 @@ export -f stdtime # ------------------------------------------------------------------------------ # Check if a function exists, return 0 if so function_exists() { - declare -f -F $1 2>&1 /dev/null + LC_ALL=C type -t $1 | grep function return $? } export -f function_exists