idhub entrypoint: refactor check_app_is_there
This commit is contained in:
parent
fea4652e88
commit
9a14a3f3da
|
@ -103,9 +103,17 @@ main() {
|
|||
idhub_dir='/opt/idhub'
|
||||
cd "${idhub_dir}"
|
||||
|
||||
check_app_is_there() {
|
||||
if [ ! -f "./manage.py" ]; then
|
||||
usage
|
||||
fi
|
||||
}
|
||||
|
||||
main() {
|
||||
idhub_dir='/opt/idhub'
|
||||
cd "${idhub_dir}"
|
||||
|
||||
check_app_is_there
|
||||
|
||||
deployment_strategy
|
||||
|
||||
|
|
Reference in a new issue