mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-06-25 00:40:31 -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
|
#!/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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue