Browse Source

Tidying function checking utils

Bob Mottram 7 years ago
parent
commit
05f39281f2
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/freedombone-utils-depends

+ 2
- 2
src/freedombone-utils-depends View File

@@ -29,14 +29,14 @@
29 29
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
30 30
 
31 31
 function function_check {
32
-    if [ ! "$(type ${1} 2>/dev/null)" ]; then
32
+    if [ ! "$(type "${1}" 2>/dev/null)" ]; then
33 33
         echo $"Dependency error: The function ${1} has not been defined"
34 34
         exit 72528
35 35
     fi
36 36
 }
37 37
 
38 38
 function function_exists {
39
-    if [ ! "$(type ${1} 2>/dev/null)" ]; then
39
+    if [ ! "$(type "${1}" 2>/dev/null)" ]; then
40 40
         echo "0"
41 41
     else
42 42
         echo "1"