Compare commits

..

No commits in common. "master" and "v0.1" have entirely different histories.
master ... v0.1

View File

@ -26,9 +26,6 @@ Author="Jack-Benny Persson (jack-benny@cyberinfo.se)"
# Binaries # Binaries
Which="/usr/bin/which" 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 # Variables
@ -38,7 +35,7 @@ Binaries=(sed awk egrep mail printf cat grep mktemp rm tail)
# Print version information # Print version information
print_version() print_version()
{ {
$Printf "\n$0 - $Version\n" $Printf "\n\n$0 - $Version\n"
} }
# Print help information # Print help information
@ -64,6 +61,7 @@ print_help()
# Create variables with absolute path to binaries and check # Create variables with absolute path to binaries and check
# if we can execute it (binaries will be avaliable in # if we can execute it (binaries will be avaliable in
# variables with first character uppercase, such as Grep) # variables with first character uppercase, such as Grep)
Binaries=(sed awk egrep mail printf cat grep mktemp rm tail)
Count=0 Count=0
for i in ${Binaries[@]}; do for i in ${Binaries[@]}; do
$Which $i &> /dev/null $Which $i &> /dev/null
@ -100,4 +98,5 @@ done
### Main ### ### Main ###
exit 0 exit 0