소스 검색

Tidying function checking utils

Bob Mottram 7 년 전
부모
커밋
05f39281f2
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      src/freedombone-utils-depends

+ 2
- 2
src/freedombone-utils-depends 파일 보기

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