From: Michael Tremer Date: Wed, 29 Nov 2017 11:46:27 +0000 (+0000) Subject: Never remove any builds from the core branches X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=402763804bda685aff03109d20af3966124466de;p=people%2Fms%2Fnightly-builds.git Never remove any builds from the core branches Signed-off-by: Michael Tremer --- 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