]> git.ipfire.org Git - people/ms/nightly-builds.git/commitdiff
Never remove any builds from the core branches
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 29 Nov 2017 11:46:27 +0000 (11:46 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 29 Nov 2017 11:46:27 +0000 (11:46 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
server-scripts/ipfire-cleanup-nightly-builds.sh

index 433945eefb564e3eb290fd7767a63713ddd9fc4b..59fb2fa52813b159ddc13dc89fb2ce0b677bdfc5 100755 (executable)
@@ -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