Skip to content

Commit

Permalink
Merge pull request #86 from 10up/fix/build-dir-path
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhtungdu authored Mar 18, 2022
2 parents 2a5e2c1 + 0fbc2c8 commit e41f954
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fi

if [[ "$BUILD_DIR" != false ]]; then
if [[ $BUILD_DIR != /* ]]; then
BUILD_DIR="${GITHUB_WORKSPACE%/}/${BUILD_DIR}"
BUILD_DIR="${GITHUB_WORKSPACE%/}/${BUILD_DIR%/}"
fi
echo "ℹ︎ BUILD_DIR is $BUILD_DIR"
fi
Expand Down Expand Up @@ -108,7 +108,7 @@ if [[ "$BUILD_DIR" = false ]]; then
fi
else
echo "ℹ︎ Copying files from build directory..."
rsync -rc "$BUILD_DIR" trunk/ --delete --delete-excluded
rsync -rc "$BUILD_DIR/" trunk/ --delete --delete-excluded
fi

# Copy dotorg assets to /assets
Expand Down

0 comments on commit e41f954

Please sign in to comment.