simplify logic
This commit is contained in:
parent
14b734ad42
commit
d4306a3f7e
@ -36,9 +36,8 @@ command_exists() {
|
|||||||
if command -v "${1}" >/dev/null
|
if command -v "${1}" >/dev/null
|
||||||
then
|
then
|
||||||
return 0
|
return 0
|
||||||
else
|
|
||||||
return 1
|
|
||||||
fi
|
fi
|
||||||
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
if command_exists tput
|
if command_exists tput
|
||||||
|
Loading…
Reference in New Issue
Block a user