PhyrePanel/shell/helpers/ubuntu/common.sh

15 lines
178 B
Bash
Raw Normal View History

2023-11-23 18:13:24 +00:00
#!/bin/bash
function command_is_installed() {
CHECK_COMMAND=$1
if [[ $(command -v $CHECK_COMMAND) == "" ]]; then
return 1
else
return 0
fi
}