File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff 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 '\
6262cd $(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 :\" && \
6664ls -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
You can’t perform that action at this time.
0 commit comments