Skip to content

Commit b77483c

Browse files
committed
testing
1 parent 0145793 commit b77483c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Makefile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,15 @@ preview:
5757
$(REMOTE_CMD) "cd $(RELEASES_DIR) && ln -snf $(TIMESTAMP) current"
5858
@echo "\n\n**** Preview complete.\n\n"
5959
@echo "Open the preview site at: $(PREVIEW_SITE_URL)\n\n"
60-
@echo "\n**** Cleaning up old releases (keep latest 3, skip 'current')...\n"
60+
@echo "\n**** Cleaning up old releases (keep latest 1, skip 'current')...\n"
6161
$(REMOTE_CMD) "bash -c '\
6262
cd $(RELEASES_DIR) && \
63-
echo \"[INFO] In directory: \$$PWD\" && \
64-
echo \"[INFO] Listing contents:\" && ls -1dt */ && \
65-
echo \"[INFO] Cleaning (dry-run):\" && \
63+
echo \"[INFO] Cleaning:\" && \
6664
ls -1dt */ \
6765
| sed \"s:/*\\\$$::\" \
6866
| grep -v ^current\\\$$ \
6967
| grep -v ^$(TIMESTAMP)\\\$$ \
70-
| tail -n +4 \
68+
| tail -n +2 \
7169
| xargs -r -I{} echo rm -rf \"{}\"'"
7270

7371

0 commit comments

Comments
 (0)