* Now I can supply whatever backend I want

* Changed retrieve SSL certificate message

* Place all certs in /etc/ssl

* Added a new function cmd_exists to bootstrap.sh

* Properly check for response code

* Added Debug command line arguement

* Refactor code
This commit is contained in:
Lutchy Horace 2021-11-09 01:52:55 -05:00
parent f25ed84a60
commit 97199fc9f5
2 changed files with 93 additions and 48 deletions

View file

@ -127,7 +127,7 @@ function run_cmd {
fi
## Check if command exists on system
if ! command -v $1; then
if ! cmd_exists $1; then
err "$1: command not found"
fi
@ -154,3 +154,11 @@ function run_cmd {
}
function cmd_exists
{
if ! command -v $1 > /dev/null 2>&1; then
return 1
fi
return 0
}