From bc41a5bd9502e665a7e570c891993c7c7b3698cd Mon Sep 17 00:00:00 2001 From: Binyamin Laukstein Date: Sat, 13 May 2023 22:55:47 +0300 Subject: [PATCH] Respect DO_DIR variable Fixes #1 --- entrypoint.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 5803fa2..5f33de0 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -54,10 +54,10 @@ else LOCAL_DIR="$LOCAL_DIR/" fi -if [ -z "$SPACE_DIR" ]; then - SPACE_DIR="" +if [ -z "$DO_DIR" ]; then + DO_DIR="" else - SPACE_DIR="$SPACE_DIR/" + DO_DIR="$DO_DIR/" fi if [ -n "$CF_URL" ] && [ "${CF_URL:-1}" != '/' ]; then @@ -76,7 +76,7 @@ host_bucket = %(bucket).${ENDPOINT} CONFIG S3="s3://$DO_NAME/" -UPDATES=$(s3cmd --no-preserve --no-check-md5 --no-progress --recursive --exclude=.git $DELETE_FLAG $ACCESS_FLAG $HEADER_FLAG sync $LOCAL_DIR $S3$SPACE_DIR) +UPDATES=$(s3cmd --no-preserve --no-check-md5 --no-progress --recursive --exclude=.git $DELETE_FLAG $ACCESS_FLAG $HEADER_FLAG sync $LOCAL_DIR $S3$DO_DIR) DO_FILES='' CF_URLS='' echo 'Changes successfully updated in DigitalOcean Space:'