diff options
author | Leonidas P | 2022-02-19 04:02:25 +0200 |
---|---|---|
committer | Leonidas P | 2022-02-19 04:02:25 +0200 |
commit | 85aa43e06832607b3c1b210915ce51ac01c01b1d (patch) | |
tree | a2171f958fa1f37676520b8e229dab95787b4143 /dracut-remove | |
parent | 32cd5957a063b1d87ae8c09989b9116c39773569 (diff) | |
download | aur-85aa43e06832607b3c1b210915ce51ac01c01b1d.tar.gz |
ignore non-pacman kernels
Diffstat (limited to 'dracut-remove')
-rwxr-xr-x | dracut-remove | 2 |
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 |