From 3333833573c52445e773fe9a175bd0609fa5da88 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Fri, 15 Apr 2016 16:26:54 +0200 Subject: Fix bashism. --- localdebpool | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'localdebpool') diff --git a/localdebpool b/localdebpool index 26ba41c..68a107b 100755 --- a/localdebpool +++ b/localdebpool @@ -26,7 +26,7 @@ compactlist() { } regexfromlist() { - echo $@ | sed 's/[[:space:]]\+/|/g; s/^/(/; s/$/)/' + echo $@ | sed 's/[[:space:]]\+/|/g; s/+/\\+/g; s/^/(/; s/$/)/' } sectionsfromhintstream() { @@ -190,7 +190,7 @@ debugprint "Sections in batch: \"$batchsections\"" batchsections_re= if [ -n "$batchsections" ]; then - batchsections_re="\b$(regexfromlist ${batchsections/+/\\\\+})(\s|\Z)" + batchsections_re="\b$(regexfromlist $batchsections)(\s|\Z)" else echo 1>&2 "ERROR: Package(s) $@ was not found in any section." exit 1 -- cgit v1.2.3