From 251791fdfcd3fe434debcf17a4eb44eafb2639c9 Mon Sep 17 00:00:00 2001 From: Recolic Keghart <root@recolic.net> Date: Tue, 12 Oct 2021 02:02:09 +0800 Subject: [PATCH] fix --- aur/PKGBUILD | 4 ++-- src/shared-bootdir-helper-multi-kparam.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/aur/PKGBUILD b/aur/PKGBUILD index 690ffd7..6090748 100644 --- a/aur/PKGBUILD +++ b/aur/PKGBUILD @@ -3,8 +3,8 @@ # Mirror: https://github.com/recolic/shared-bootdir-helper pkgname=shared-bootdir-helper -pkgver=1.2 -pkgrel=3 +pkgver=1.3.1 +pkgrel=1 pkgdesc="Allow multiple linux installations to share the same /boot directory, even with different kernel parameters. " url="https://git.recolic.net/root/$pkgname" license=("GPL3") diff --git a/src/shared-bootdir-helper-multi-kparam.sh b/src/shared-bootdir-helper-multi-kparam.sh index 595922f..50f434b 100755 --- a/src/shared-bootdir-helper-multi-kparam.sh +++ b/src/shared-bootdir-helper-multi-kparam.sh @@ -26,7 +26,7 @@ while IFS= read -r line; do for hostname in "${!map_hostname_to_kparam[@]}"; do # Assuming that, the kimg filename contains "vmlinuz-xxx-$hostname ", in lowercase. That's important! [[ "$line" == *"-$hostname "* ]] && - echo "$line" | sed "s|-$hostname .*$|-$hostname ${map_kimage_to_kparam[$hostname]}|g" >> "$tmpfile" && + echo "$line" | sed "s|-$hostname .*$|-$hostname ${map_hostname_to_kparam[$hostname]}|g" >> "$tmpfile" && matched=1 && break done -- GitLab