From 9392c8deb2657d3ff2c3734fb8bf1863d4e2a2d7 Mon Sep 17 00:00:00 2001 From: madaidan <50278627+madaidan@users.noreply.github.com> Date: Wed, 26 Jun 2019 15:03:54 +0000 Subject: [PATCH] Update remove-system.map --- usr/lib/security-misc/remove-system.map | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/usr/lib/security-misc/remove-system.map b/usr/lib/security-misc/remove-system.map index 8e723f9..10071f8 100644 --- a/usr/lib/security-misc/remove-system.map +++ b/usr/lib/security-misc/remove-system.map @@ -1,9 +1,14 @@ #!/bin/bash +## Copyright (C) 2012 - 2018 ENCRYPTED SUPPORT LP +## See the file COPYING for copying conditions. + +shopt -s nullglob + # Removes the System.map files as they are only used for debugging or malware. -for file in /boot/System.map-* +for filename in /boot/System.map-* do - if [ -f "${file}" ]; then - rm "${file}" + if [ -f "${filename}" ]; then + rm -f "${filename}" fi done