From f31ea3a48ebea33f85bcd682c72848cadebb7ad1 Mon Sep 17 00:00:00 2001 From: Christian Heusel Date: Sat, 29 Jul 2023 12:05:35 +0200 Subject: fix(build): fix repo detection for special chars in package name Currently we used grep -E, in a way that special characters in the package name such as the '+' in 'ls++' also became part of the regex. This commit switches this to become a literal string matching using awk. Signed-off-by: Christian Heusel --- src/lib/util/pacman.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/util/pacman.sh b/src/lib/util/pacman.sh index f6c2d5f..541147c 100644 --- a/src/lib/util/pacman.sh +++ b/src/lib/util/pacman.sh @@ -44,7 +44,7 @@ get_pacman_repo_from_pkgbuild() { -S \ --print \ --print-format '%n %r' \ - "${pkgnames[0]}" | grep -E "^${pkgnames[0]} " | awk '{print $2}' + "${pkgnames[0]}" | awk '$1=="'"${pkgnames[0]}"'"{print $2}' ) lock_close 10 -- cgit v1.2.3-70-g09d2