14 lines
178 B
Bash
14 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
|
|
|
|
}
|
|
|