Skip to content

Commit 49527bf

Browse files
committed
ready to merge
1 parent 72b732b commit 49527bf

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Makefile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,15 @@ preview:
5858
$(REMOTE_CMD) "cd $(RELEASES_DIR) && ln -snf $(TIMESTAMP) current"
5959
@echo "\n\n**** Preview complete.\n\n"
6060
@echo "Open the preview site at: $(PREVIEW_SITE_URL)\n\n"
61-
@echo "\n**** Cleaning up old releases (keep latest 1, skip 'current')...\n"
61+
@echo "\n**** Cleaning up old releases (keep latest 3, skip 'current')...\n"
6262
$(REMOTE_CMD) "bash -c '\
6363
cd $(RELEASES_DIR) && \
6464
echo \"[INFO] Cleaning:\" && \
65-
ls -1 */ \
66-
| sed \"s:/*\\\$$::\" \
67-
| grep \"^2025\" \
65+
ls -1d 2025*/ 2>/dev/null \
66+
| sed \"s:/*\\\$$::\" \
6867
| sort -r \
6968
| tail -n +4 \
70-
| xargs -r -I{} rm -rf \"{}\"'"
69+
| xargs -r rm -rf'"
7170

7271

7372
ifeq ($(FORCE_DEPLOY), true)

0 commit comments

Comments
 (0)