fix program_exists ( LOL )
This commit is contained in:
parent
70f914ecba
commit
932b15dda9
|
@ -32,10 +32,12 @@ function version_minor() {
|
|||
function program_exists() {
|
||||
local prog="$1"
|
||||
|
||||
if [[ $(which "$prog" &> /dev/null) ]]; then
|
||||
echo "0"
|
||||
else
|
||||
which "$prog" &> /dev/null
|
||||
|
||||
if [[ $? == "0" ]]; then
|
||||
echo "1"
|
||||
else
|
||||
echo "0"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue