From 668b6420de8024fdeaf948f1750beb8b62d9ffb7 Mon Sep 17 00:00:00 2001 From: madaidan <50278627+madaidan@users.noreply.github.com> Date: Sat, 7 Dec 2019 14:15:02 +0000 Subject: [PATCH] Remove hyphen --- usr/lib/security-misc/remove-system.map | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/lib/security-misc/remove-system.map b/usr/lib/security-misc/remove-system.map index 1742982..76fec11 100755 --- a/usr/lib/security-misc/remove-system.map +++ b/usr/lib/security-misc/remove-system.map @@ -6,7 +6,7 @@ shopt -s nullglob counter=0 -for filename in /boot/System.map-* ; do +for filename in /boot/System.map* ; do counter=$(( counter + 1 )) done @@ -15,7 +15,7 @@ if [ "$counter" -ge "1" ]; then fi ## Removes the System.map files as they are only used for debugging or malware. -for filename in /boot/System.map-* ; do +for filename in /boot/System.map* ; do if [ -f "${filename}" ]; then rm --verbose --force "${filename}" fi