From d0cba3c28f847b56d4b7ae85fcb944197fbc856e Mon Sep 17 00:00:00 2001 From: Jack-Benny Persson Date: Fri, 3 Jan 2014 09:18:39 +0100 Subject: [PATCH] Moved up the binaries list a bit --- template.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/template.sh b/template.sh index f169588..27f8cb5 100755 --- a/template.sh +++ b/template.sh @@ -26,6 +26,9 @@ Author="Jack-Benny Persson (jack-benny@cyberinfo.se)" # Binaries Which="/usr/bin/which" +# Binaries entered in the list will be avalible to the script as variables with +# the first letter uppercase +Binaries=(sed awk egrep mail printf cat grep mktemp rm tail) # Variables @@ -61,7 +64,6 @@ print_help() # Create variables with absolute path to binaries and check # if we can execute it (binaries will be avaliable in # variables with first character uppercase, such as Grep) -Binaries=(sed awk egrep mail printf cat grep mktemp rm tail) Count=0 for i in ${Binaries[@]}; do $Which $i &> /dev/null @@ -98,5 +100,4 @@ done ### Main ### - exit 0