Make sure to clone on deploy as well

This commit is contained in:
Luke Murphy 2020-11-01 17:08:44 +01:00
parent 33a49a8457
commit 57e3a34133
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 5 additions and 0 deletions

5
abra
View File

@ -502,6 +502,8 @@ sub_app_deploy (){
load_instance
load_instance_env
require_app_clone "$APP"
echo "About to deploy:"
echo " Server: $(tput setaf 4)${SERVER}$(tput sgr0)"
if [ "${COMPOSE_FILE/:/}" == "${COMPOSE_FILE}" ]; then
@ -521,6 +523,9 @@ sub_app_deploy (){
prompt_confirm
APP=$(basename "$APP_DIR")
require_app_clone "$APP"
(
cd "$APP_DIR" || error "\$APP_DIR '$APP_DIR' not found"
# shellcheck disable=SC2086