Skip to content
Snippets Groups Projects
Commit 3f55f98d authored by Pavel Kácha's avatar Pavel Kácha
Browse files

Fixed exit code omission

parent 540afb8b
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,7 @@ function flee { echo -e "$1"; exit $2; } ...@@ -16,7 +16,7 @@ function flee { echo -e "$1"; exit $2; }
[ -z "$client" -o -z "$password" ] && flee "Usage: ${0%.*} client.name password" 255 [ -z "$client" -o -z "$password" ] && flee "Usage: ${0%.*} client.name password" 255
for n in openssl curl; do for n in openssl curl; do
command -v "$n" 2>/dev/null || flee "Haven't found $n binary." command -v "$n" 2>/dev/null || flee "Haven't found $n binary." 251
done done
for n in "$csr" "$key" "$cert"; do for n in "$csr" "$key" "$cert"; do
[ -e "$n" ] && flee "$n already exists, I won't overwrite, move them away first, please." 254 [ -e "$n" ] && flee "$n already exists, I won't overwrite, move them away first, please." 254
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment