From 9c8baeced844574e1bba53666e5c73339825a7eb Mon Sep 17 00:00:00 2001 From: Niko Date: Fri, 27 Jun 2025 13:45:49 +0200 Subject: [PATCH 1/2] Simplify clanup command (keep dry mode) --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 98763ec06..1bf327a82 100644 --- a/Makefile +++ b/Makefile @@ -61,11 +61,11 @@ preview: $(REMOTE_CMD) "bash -c '\ cd $(RELEASES_DIR) && \ echo \"[INFO] Cleaning:\" && \ -ls -1dt */ \ - | sed \"s:/*\\\$$::\" \ - | grep -v ^current\\\$$ \ - | grep -v ^$(TIMESTAMP)\\\$$ \ - | tail -n +2 \ +ls -1 */ \ + | sed \"s:/*\\\$::\" \ + | grep \"^2025\" \ + | sort -r \ + | tail -n +4 \ | xargs -r -I{} echo rm -rf \"{}\"'" From 805d67d9f193ee55b66f353cb24231552408ad46 Mon Sep 17 00:00:00 2001 From: Niko Date: Wed, 2 Jul 2025 14:16:42 +0200 Subject: [PATCH 2/2] Update sed command --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index fbeb6a2f6..bae17f79e 100644 --- a/Makefile +++ b/Makefile @@ -63,7 +63,7 @@ preview: cd $(RELEASES_DIR) && \ echo \"[INFO] Cleaning:\" && \ ls -1 */ \ - | sed \"s:/*\\\$::\" \ + | sed \"s:/*\\\$$::\" \ | grep \"^2025\" \ | sort -r \ | tail -n +4 \