summaryrefslogtreecommitdiff
path: root/localdebpool
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2016-04-15 22:43:30 +0200
committerJonas Smedegaard <dr@jones.dk>2016-04-15 22:43:30 +0200
commitbc81ee0f9086f7bcbd9172a2d03fe9bf24690265 (patch)
treecc4febf89913901ee014275d899c181fde9bd262 /localdebpool
parentdf28c867f2fe4319cefba087490e3210a13fbd46 (diff)
Tidy (thanks to shellcheck): Use $* (not $@) for lists.
Diffstat (limited to 'localdebpool')
-rwxr-xr-xlocaldebpool8
1 files changed, 4 insertions, 4 deletions
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