Remove hyphen

This commit is contained in:
madaidan 2019-12-07 14:15:02 +00:00 committed by GitHub
parent 55225aa30e
commit 668b6420de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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