Prevent accidental cd
when loading app vars
This commit is contained in:
parent
4e913c426d
commit
43e7672725
6
abra
6
abra
@ -367,7 +367,7 @@ require_app_latest() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$abra___skip_update" = "false" ]; then
|
if [ "$abra___skip_update" = "false" ]; then
|
||||||
cd "$APP_DIR" && git pull > /dev/null 2>&1
|
(cd "$APP_DIR" && git pull > /dev/null 2>&1)
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -773,9 +773,9 @@ sub_app_deploy (){
|
|||||||
APP=$(basename "$APP_DIR")
|
APP=$(basename "$APP_DIR")
|
||||||
|
|
||||||
(
|
(
|
||||||
cd "$APP_DIR" || error "\$APP_DIR '$APP_DIR' not found"
|
(cd "$APP_DIR" || error "\$APP_DIR '$APP_DIR' not found")
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
if docker stack deploy -c ${COMPOSE_FILE//:/ -c } "$STACK_NAME"; then
|
if (cd "$APP_DIR" && docker stack deploy -c ${COMPOSE_FILE//:/ -c } "$STACK_NAME"); then
|
||||||
if [ -n "$DOMAIN" ]; then
|
if [ -n "$DOMAIN" ]; then
|
||||||
success "Yay! App should be available at https://${DOMAIN}"
|
success "Yay! App should be available at https://${DOMAIN}"
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user