Browse Source

updatewine.sh: minor fix to command check function

master
Fincer 6 years ago
parent
commit
124e0b6ebb
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      updatewine.sh

+ 2
- 1
updatewine.sh View File

@ -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


Loading…
Cancel
Save