]> git.ipfire.org Git - pakfire.git/commitdiff
Fix error in detection of scripts.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 23 Dec 2011 14:51:31 +0000 (15:51 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 23 Dec 2011 14:51:31 +0000 (15:51 +0100)
Just a typo.

tools/find-requires
tools/functions-files

index 7599cfeb02a2aa187bf87e5bbf11291930a66e8d..ce71cbb1591362f532bee91faf89d0ae9a7aeb69 100755 (executable)
@@ -86,7 +86,7 @@ for file in ${script_files}; do
        interpreters="${interpreters} ${interp}"
 
        # Collect all perl files.
-       case ${interp} in
+       case "${interp}" in
                */perl)
                        perl_files="${perl_files} ${file}"
                        ;;
index 8f27db60a6879c8442d60572c6237c9f7367d26f..e07d57b6ff2cdd5ff77c94ea9718693b6bd4939c 100644 (file)
@@ -14,7 +14,7 @@ function file_is_elf() {
 function file_is_script() {
        local file=${1}
 
-       file ${file} | egrep -q ":.* (commands|script) "
+       file ${file} | egrep -q ":.* (commands|script)"
 }
 
 # Check if file is an 64-bit binary.