From 05f39281f2ea06ec11e6a9ed66249ab9048c78e9 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 25 Feb 2018 17:32:57 +0000 Subject: [PATCH] Tidying function checking utils --- src/freedombone-utils-depends | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedombone-utils-depends b/src/freedombone-utils-depends index aee2a609..bb2572ac 100755 --- a/src/freedombone-utils-depends +++ b/src/freedombone-utils-depends @@ -29,14 +29,14 @@ # along with this program. If not, see . function function_check { - if [ ! "$(type ${1} 2>/dev/null)" ]; then + if [ ! "$(type "${1}" 2>/dev/null)" ]; then echo $"Dependency error: The function ${1} has not been defined" exit 72528 fi } function function_exists { - if [ ! "$(type ${1} 2>/dev/null)" ]; then + if [ ! "$(type "${1}" 2>/dev/null)" ]; then echo "0" else echo "1"