Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src/lib/version/setup.sh
diff options
context:
space:
mode:
authorLevente Polyak <anthraxx@archlinux.org>2024-05-10 21:22:23 +0200
committerLevente Polyak <anthraxx@archlinux.org>2024-05-10 21:22:23 +0200
commitd1790c295a054982734aa9b1b3eb4f7d4de234f6 (patch)
treebc5a2cf0d1bbbbfdb26af306f8222389e591def3 /src/lib/version/setup.sh
parent12a0d0c7b58dbae32083b74760669a6edc8b7d06 (diff)
fix(version): escape pkgbase in nvchecker toml
This fixes issues with packages containing plus signs, that need to be escaped in toml as well as the extended grep regex. Component: pkgctl version check
Diffstat (limited to 'src/lib/version/setup.sh')
-rw-r--r--src/lib/version/setup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/version/setup.sh b/src/lib/version/setup.sh
index 123862c..cdfbeac 100644
--- a/src/lib/version/setup.sh
+++ b/src/lib/version/setup.sh
@@ -252,7 +252,7 @@ nvchecker_setup() {
# escape the section if it contains toml subsection chars
section="${pkgbase}"
- if [[ ${section} == *.* ]]; then
+ if [[ ${section} == *.* ]] || [[ ${section} == *+* ]]; then
section="\"${section}\""
fi