Moved up the binaries list a bit
This commit is contained in:
parent
1546b293d2
commit
d0cba3c28f
@ -26,6 +26,9 @@ 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
|
||||||
|
|
||||||
@ -61,7 +64,6 @@ 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
|
||||||
@ -98,5 +100,4 @@ done
|
|||||||
### Main ###
|
### Main ###
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user