mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-05-16 12:12:12 -04:00
Merge pull request #40 from madaidan/system.map
Remove hyphen from remove-system.map
This commit is contained in:
commit
447eb14432
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@
|
|||
shopt -s nullglob
|
||||
|
||||
counter=0
|
||||
for filename in /boot/System.map-* ; do
|
||||
for filename in /boot/System.map* ; do
|
||||
counter=$(( counter + 1 ))
|
||||
done
|
||||
|
||||
|
@ -15,7 +15,7 @@ if [ "$counter" -ge "1" ]; then
|
|||
fi
|
||||
|
||||
## Removes the System.map files as they are only used for debugging or malware.
|
||||
for filename in /boot/System.map-* ; do
|
||||
for filename in /boot/System.map* ; do
|
||||
if [ -f "${filename}" ]; then
|
||||
rm --verbose --force "${filename}"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue