mirror of
https://github.com/tubearchivist/tubearchivist-metrics.git
synced 2024-12-22 09:50:15 +00:00
FIX: Exit code incorrectly placed
This commit is contained in:
parent
5d8b3a36a6
commit
2f05886c7b
6
deploy.sh
Normal file → Executable file
6
deploy.sh
Normal file → Executable 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
|
Loading…
Reference in New Issue
Block a user