FIX: Exit code incorrectly placed

This commit is contained in:
Ainsey11 2022-04-14 21:58:31 +01:00
parent 5d8b3a36a6
commit 2f05886c7b
1 changed files with 5 additions and 3 deletions

8
deploy.sh Normal file → Executable file
View File

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