summaryrefslogtreecommitdiff
path: root/localdebpool
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2016-04-15 16:26:54 +0200
committerJonas Smedegaard <dr@jones.dk>2016-04-15 16:26:54 +0200
commit3333833573c52445e773fe9a175bd0609fa5da88 (patch)
treef35fafeb13d5f57b06fb4a4b1671b25f4177eb12 /localdebpool
parentdf3363faf746c905b30b8a731cb239c614469497 (diff)
Fix bashism.
Diffstat (limited to 'localdebpool')
-rwxr-xr-xlocaldebpool4
1 files changed, 2 insertions, 2 deletions
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