From f8cdfb7ec078fbad22faca3f963434215103bf83 Mon Sep 17 00:00:00 2001
From: Recolic Keghart <root@recolic.net>
Date: Tue, 12 Oct 2021 01:50:47 +0800
Subject: [PATCH] fix

---
 src/shared-bootdir-helper-multi-kparam.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/shared-bootdir-helper-multi-kparam.sh b/src/shared-bootdir-helper-multi-kparam.sh
index dc69ac7..085867c 100755
--- a/src/shared-bootdir-helper-multi-kparam.sh
+++ b/src/shared-bootdir-helper-multi-kparam.sh
@@ -22,7 +22,7 @@ inputfile="$1"
 
 while IFS= read -r line; do
     matched=0
-    if [[ "$line" == *"\tlinux\t/"* ]]; then
+    if [[ "$line" == *"$(printf "\tlinux\t/")"* ]]; then
         for hostname in "${!map_hostname_to_kparam[@]}"; do
             # Assuming that, the kimg filename contains "vmlinuz-xxx-$hostname ", in lowercase. That's important! 
             [[ "$line" == *"-$hostname "* ]] &&
-- 
GitLab