15 lines
178 B
Bash
15 lines
178 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
function command_is_installed() {
|
||
|
|
||
|
CHECK_COMMAND=$1
|
||
|
|
||
|
if [[ $(command -v $CHECK_COMMAND) == "" ]]; then
|
||
|
return 1
|
||
|
else
|
||
|
return 0
|
||
|
fi
|
||
|
|
||
|
}
|
||
|
|