Skip to content

Commit 5e765b3

Browse files
authored
Simplify clanup command (keep dry mode) (#1357)
1 parent 6f07338 commit 5e765b3

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
@@ -62,11 +62,11 @@ preview:
6262
$(REMOTE_CMD) "bash -c '\
6363
cd $(RELEASES_DIR) && \
6464
echo \"[INFO] Cleaning:\" && \
65-
ls -1dt */ \
66-
| sed \"s:/*\\\$$::\" \
67-
| grep -v ^current\\\$$ \
68-
| grep -v ^$(TIMESTAMP)\\\$$ \
69-
| tail -n +2 \
65+
ls -1 */ \
66+
| sed \"s:/*\\\$$::\" \
67+
| grep \"^2025\" \
68+
| sort -r \
69+
| tail -n +4 \
7070
| xargs -r -I{} echo rm -rf \"{}\"'"
7171

7272

0 commit comments

Comments
 (0)