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