From bc81ee0f9086f7bcbd9172a2d03fe9bf24690265 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Fri, 15 Apr 2016 22:43:30 +0200 Subject: Tidy (thanks to shellcheck): Use $* (not $@) for lists. --- localdebpool | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'localdebpool') diff --git a/localdebpool b/localdebpool index e6723a4..9fcc168 100755 --- a/localdebpool +++ b/localdebpool @@ -23,7 +23,7 @@ compactlist() { } regexfromlist() { - echo $@ | sed 's/[[:space:]]\+/|/g; s/+/\\+/g; s/^/(/; s/$/)/' + echo "$*" | sed 's/[[:space:]]\+/|/g; s/+/\\+/g; s/^/(/; s/$/)/' } sectionsfromhintstream() { @@ -137,7 +137,7 @@ EOF genrelease() { dist="$1" shift - sections="$@" + sections="$*" archs="$(archsfromdirs "$PRVBASE/sections"/*/"$dist")" archs="$(compactlist $archs)" case "$dist" in @@ -156,7 +156,7 @@ Components: $sections EOF } -packages="$@" +packages="$*" packages="$(compactlist $packages)" debugprint "Packages: \"$packages\"" @@ -189,7 +189,7 @@ batchsections_re= if [ -n "$batchsections" ]; then batchsections_re="\b$(regexfromlist $batchsections)(\s|\Z)" else - echo 1>&2 "ERROR: Package(s) $@ was not found in any section." + echo 1>&2 "ERROR: Package(s) $* was not found in any section." exit 1 fi -- cgit v1.2.3