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 e8b7155 commit e3db702Copy full SHA for e3db702
Makefile
@@ -58,7 +58,10 @@ preview:
58
@echo "\n\n**** Preview complete.\n\n"
59
@echo "Open the preview site at: $(PREVIEW_SITE_URL)\n\n"
60
@echo "\n**** Cleaning up old releases (keep latest 3, skip 'current')...\n"
61
- $(REMOTE_CMD) bash -c "'cd $(RELEASES_DIR) && ls -1dt */ | grep -v \"^current/?$$\" | grep -v \"^$(TIMESTAMP)/$$\" | xargs -r echo rm -rf'" | tee /dev/stdout
+ $(REMOTE_CMD) 'bash -c "cd $(RELEASES_DIR) && \
62
+ for dir in $(ls -1dt */ | sed \"s:/*$$::\" | grep -v ^current$$ | grep -v ^$(TIMESTAMP)$$ | tail -n +2); do \
63
+ echo rm -rf \"$$dir\"; \
64
+ done"' | tee /dev/stdout
65
66
67
ifeq ($(FORCE_DEPLOY), true)
0 commit comments