feat: add rm blog dir in init script (fixes #1) #2

Merged
Vezpi merged 1 commits from fix-container-restart-1 into preview 2025-09-01 20:28:58 +02:00

View File

@@ -14,6 +14,9 @@ if [ "$BRANCH" = "preview" ]; then
DRAFTS="--buildDrafts --buildFuture" DRAFTS="--buildDrafts --buildFuture"
fi fi
# Clean blog dir
rm -rf "$CLONE_DIR"
# Clone repo # Clone repo
echo "- Cloning $REPO_URL (branch: $BRANCH)..." echo "- Cloning $REPO_URL (branch: $BRANCH)..."
git clone --recurse-submodules --branch "$BRANCH" "$REPO_URL" "$CLONE_DIR" git clone --recurse-submodules --branch "$BRANCH" "$REPO_URL" "$CLONE_DIR"