|
@ -45,6 +45,7 @@ COMMANDS=( |
|
|
grep |
|
|
grep |
|
|
uname |
|
|
uname |
|
|
readlink |
|
|
readlink |
|
|
|
|
|
patch |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
function checkCommands() { |
|
|
function checkCommands() { |
|
@ -54,7 +55,7 @@ function checkCommands() { |
|
|
local a=0 |
|
|
local a=0 |
|
|
for command in ${@}; do |
|
|
for command in ${@}; do |
|
|
if [[ ! $(which $command 2>/dev/null) ]]; then |
|
|
if [[ ! $(which $command 2>/dev/null) ]]; then |
|
|
COMMANDS_NOTFOUND[$a]=$command |
|
|
|
|
|
|
|
|
local COMMANDS_NOTFOUND[$a]=${command} |
|
|
let a++ |
|
|
let a++ |
|
|
fi |
|
|
fi |
|
|
done |
|
|
done |
|
|