Skip to content

Commit 9c8baec

Browse files
committed
Simplify clanup command (keep dry mode)
1 parent d66f032 commit 9c8baec

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ preview:
6161
$(REMOTE_CMD) "bash -c '\
6262
cd $(RELEASES_DIR) && \
6363
echo \"[INFO] Cleaning:\" && \
64-
ls -1dt */ \
65-
| sed \"s:/*\\\$$::\" \
66-
| grep -v ^current\\\$$ \
67-
| grep -v ^$(TIMESTAMP)\\\$$ \
68-
| tail -n +2 \
64+
ls -1 */ \
65+
| sed \"s:/*\\\$::\" \
66+
| grep \"^2025\" \
67+
| sort -r \
68+
| tail -n +4 \
6969
| xargs -r -I{} echo rm -rf \"{}\"'"
7070

7171

0 commit comments

Comments
 (0)