From d6977becbaf644cdc98c081b3c3e3fd366c4072d Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Tue, 5 Nov 2019 01:51:14 -0500 Subject: [PATCH] refactoring --- usr/lib/security-misc/remove-system.map | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/usr/lib/security-misc/remove-system.map b/usr/lib/security-misc/remove-system.map index 235a1fe..5582493 100755 --- a/usr/lib/security-misc/remove-system.map +++ b/usr/lib/security-misc/remove-system.map @@ -6,9 +6,8 @@ shopt -s nullglob ## Removes the System.map files as they are only used for debugging or malware. -for filename in /boot/System.map-* -do - if [ -f "${filename}" ]; then - rm --verbose --force "${filename}" - fi +for filename in /boot/System.map-* ; do + if [ -f "${filename}" ]; then + rm --verbose --force "${filename}" + fi done