* 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:
parent
f25ed84a60
commit
97199fc9f5
2 changed files with 93 additions and 48 deletions
10
bootstrap.sh
10
bootstrap.sh
|
|
@ -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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue