From 40de755ac04ac3be529dcf00d33e8ab0a5d86b16 Mon Sep 17 00:00:00 2001 From: UriHerrera Date: Sun, 20 Aug 2023 14:52:01 -0600 Subject: [PATCH] Update nuts-ccu --- tmp/nuts-ccu | 3 --- 1 file changed, 3 deletions(-) diff --git a/tmp/nuts-ccu b/tmp/nuts-ccu index b72f844..9d907b9 100644 --- a/tmp/nuts-ccu +++ b/tmp/nuts-ccu @@ -98,10 +98,7 @@ find /boot -maxdepth 1 -type f \( -name "vmlinuz-*" -o -name "initrd.img-*" \) - VERSION_PATTERN_VMLINUZ=${LINKED_VMLINUZ#*-} -# Delete files starting with 'config-' in /boot that do not match the version number pattern find /boot -maxdepth 1 -type f -name "config-*" ! -name "config-$VERSION_PATTERN_VMLINUZ" -delete - -# Delete files starting with 'System.map-' in /boot that do not match the version number pattern find /boot -maxdepth 1 -type f -name "System.map-*" ! -name "System.map-$VERSION_PATTERN_VMLINUZ" -delete puts_success "Non-linked vmlinuz-* and initrd.img-* files in /boot deleted successfully."