From 402763804bda685aff03109d20af3966124466de Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 29 Nov 2017 11:46:27 +0000 Subject: [PATCH] Never remove any builds from the core branches Signed-off-by: Michael Tremer --- server-scripts/ipfire-cleanup-nightly-builds.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server-scripts/ipfire-cleanup-nightly-builds.sh b/server-scripts/ipfire-cleanup-nightly-builds.sh index 433945e..59fb2fa 100755 --- a/server-scripts/ipfire-cleanup-nightly-builds.sh +++ b/server-scripts/ipfire-cleanup-nightly-builds.sh @@ -27,6 +27,13 @@ all_successful() { } for branch in $(find "${BASEDIR}" -mindepth 1 -maxdepth 1 -type d); do + # Never remove any builds from the core branches + case "${branch}" in + core*) + continue + ;; + esac + counter=0 for build in $(find "${branch}" -mindepth 1 -maxdepth 1 -type d | sort -nr); do -- 2.47.3