mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-07-11 00:10:00 +07:00
Use a for loop to detect if System.map exists
This commit is contained in:
@ -1,6 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Removes the System.map files as they are only used for debugging or malware.
|
# Removes the System.map files as they are only used for debugging or malware.
|
||||||
if [ -f /boot/System.map-* ]; then
|
for file in /boot/System.map-*
|
||||||
rm /boot/System.map-*
|
do
|
||||||
fi
|
if [ -f "${file}" ]; then
|
||||||
|
rm "${file}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
Reference in New Issue
Block a user