mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-05-08 00:15:06 -04:00
Use a for loop to detect if System.map exists
This commit is contained in:
parent
3116a56f13
commit
8ef0db17e6
1 changed files with 6 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue