summarylogtreecommitdiffstats
path: root/dracut-remove
diff options
context:
space:
mode:
authorLeonidas P2022-02-19 04:02:25 +0200
committerLeonidas P2022-02-19 04:02:25 +0200
commit85aa43e06832607b3c1b210915ce51ac01c01b1d (patch)
treea2171f958fa1f37676520b8e229dab95787b4143 /dracut-remove
parent32cd5957a063b1d87ae8c09989b9116c39773569 (diff)
downloadaur-85aa43e06832607b3c1b210915ce51ac01c01b1d.tar.gz
ignore non-pacman kernels
Diffstat (limited to 'dracut-remove')
-rwxr-xr-xdracut-remove2
1 files changed, 1 insertions, 1 deletions
diff --git a/dracut-remove b/dracut-remove
index 6b1a4bd4997e..be3180b05891 100755
--- a/dracut-remove
+++ b/dracut-remove
@@ -1,7 +1,7 @@
#!/bin/bash -e
while read -r line; do
- if [[ $line == */pkgbase ]]; then
+ if [[ "${line}" == */pkgbase ]]; then
read -r pkgbase < "/${line}"
rm -f "/boot/vmlinuz-${pkgbase}" "/boot/initramfs-${pkgbase}.img" "/boot/initramfs-${pkgbase}-fallback.img"
fi