FIX: Exit code incorrectly placed

This commit is contained in:
Ainsey11 2022-04-14 21:58:31 +01:00
parent 5d8b3a36a6
commit 2f05886c7b

8
deploy.sh Normal file → Executable file
View File

@ -1,3 +1,5 @@
#!/bin/bash
function validate { function validate {
if [[ $1 ]]; then if [[ $1 ]]; then
@ -21,10 +23,10 @@ function validate {
} }
exit 0
if [[ $1 == "validate" ]]; then if [[ $1 == "validate" ]]; then
validate validate
else else
echo "valid options are: validate" echo "valid options are: validate"
fi fi
exit 0