From 63ffdde7b602da51d65ddcffd25f04b92eceb3d4 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Mon, 22 Jul 2024 21:58:32 +0200 Subject: [PATCH] readd quotes --- usr/lib/archboot/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/lib/archboot/common.sh b/usr/lib/archboot/common.sh index 96fa1e0b6..35449ee7f 100644 --- a/usr/lib/archboot/common.sh +++ b/usr/lib/archboot/common.sh @@ -168,7 +168,7 @@ _kver() { # aarch64 compressed and uncompressed: # rg -Noazm 1 'Linux version (.*) \(.*@' -r '$1' ${1} # riscv64: zcat ${1} | rg -Noazm 1 'Linux version (.*) \(.*@' -r '$1' - if [[ -f ${1} ]]; then + if [[ -f "${1}" ]]; then rg -Noazm 1 'ABCDEF\x00+(.*) \(.*@' -r '$1' "${1}" ||\ rg -Noazm 1 'Linux version (.*) \(.*@' -r '$1' "${1}" ||\ zcat "${1}" | rg -Noazm 1 'Linux version (.*) \(.*@' -r '$1'