]> git.ipfire.org Git - thirdparty/dracut.git/commit
fix(dracut.sh): kmoddir does not handle trailing /
authorPavel Valena <pvalena@redhat.com>
Fri, 24 Feb 2023 18:19:59 +0000 (19:19 +0100)
committerLaszlo Gombos <laszlo.gombos@gmail.com>
Mon, 27 Feb 2023 13:26:40 +0000 (08:26 -0500)
commit1ddcb137ea2a4d79491ff94f1f7802dcaa7ac381
tree087a37f108dd10f2b5f62973a73e7dbd542805ac
parent6d554d9b98333372aeb20fd153a42c8171979825
fix(dracut.sh): kmoddir does not handle trailing /

Fixes https://github.com/dracutdevs/dracut/issues/2236

+(/) only works in bash interactive mode. Using any non-interactive
bash run simply doesn't remove anything.

The solution is copied from dracut-lib.sh, trim().
dracut.sh