fix: separate quoted and unquoted string parsing

there is anoter error caused by inner shell expression, which fails
shlex parsing
This commit is contained in:
arcanis committed 2026-11-30 23:21:50 +02:00
1 parent 1fcb4cdb84
commit e1565398f4
3 files changed
+25 -4

No files matched your search

@@ -290,4 +290,8 @@ def test_parse(resource_path_root: Path) -> None:
PkgbuildPatch("var", "a\\qb"),
PkgbuildPatch("var", "\\$name"),
PkgbuildPatch("var", "first\nsecond"),
PkgbuildPatch(
"_source64",
"""https:$(echo "$_dl_urls" | sed -En 's|^.*rel="(//.*/linuxx64-[^"]*)".*$|\\1|p')""",
),
]