We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72b732b commit 49527bfCopy full SHA for 49527bf
Makefile
@@ -58,16 +58,15 @@ preview:
58
$(REMOTE_CMD) "cd $(RELEASES_DIR) && ln -snf $(TIMESTAMP) current"
59
@echo "\n\n**** Preview complete.\n\n"
60
@echo "Open the preview site at: $(PREVIEW_SITE_URL)\n\n"
61
- @echo "\n**** Cleaning up old releases (keep latest 1, skip 'current')...\n"
+ @echo "\n**** Cleaning up old releases (keep latest 3, skip 'current')...\n"
62
$(REMOTE_CMD) "bash -c '\
63
cd $(RELEASES_DIR) && \
64
echo \"[INFO] Cleaning:\" && \
65
-ls -1 */ \
66
- | sed \"s:/*\\\$$::\" \
67
- | grep \"^2025\" \
+ls -1d 2025*/ 2>/dev/null \
+ | sed \"s:/*\\\$$::\" \
68
| sort -r \
69
| tail -n +4 \
70
- | xargs -r -I{} rm -rf \"{}\"'"
+ | xargs -r rm -rf'"
71
72
73
ifeq ($(FORCE_DEPLOY), true)
0 commit comments