From 8e56dfbf08a6bfac9ba0afac89bf649a8d962af5 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 23 Dec 2011 15:51:31 +0100 Subject: [PATCH] Fix error in detection of scripts. Just a typo. --- tools/find-requires | 2 +- tools/functions-files | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/find-requires b/tools/find-requires index 7599cfeb0..ce71cbb15 100755 --- a/tools/find-requires +++ b/tools/find-requires @@ -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}" ;; diff --git a/tools/functions-files b/tools/functions-files index 8f27db60a..e07d57b6f 100644 --- a/tools/functions-files +++ b/tools/functions-files @@ -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. -- 2.39.5