Skip to content

Commit

Permalink
Respect DO_DIR variable
Browse files Browse the repository at this point in the history
Fixes #1
  • Loading branch information
stampli-binyamin committed May 13, 2023
1 parent a9c4072 commit bc41a5b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:'
Expand Down

0 comments on commit bc41a5b

Please sign in to comment.