diff options
author | Jonas Smedegaard <dr@jones.dk> | 2016-04-15 16:43:16 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2016-04-15 22:09:51 +0200 |
commit | 07ed5db45f0eb0568d2ab53c42f2726e36be6034 (patch) | |
tree | 5b675a0bd4a648a9b9d54801a79d68dcea7ce547 /localdebpool | |
parent | 284d2e041b408ff8dd46022bdcb81f30fb09b57b (diff) |
Tidy (thanks to shellcheck): Avoid useless echo/cat.
Diffstat (limited to 'localdebpool')
-rwxr-xr-x | localdebpool | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/localdebpool b/localdebpool index b2aba22..a2cd506 100755 --- a/localdebpool +++ b/localdebpool @@ -37,7 +37,7 @@ pkginfofromprvpkgdir() { package="$(basename "$1")" pool="$(dirname "$1" | sed 's,.*/pool-\([^/]\+\)/\?.*,\1,; s,-all$,,')" dist="$(echo "$pool" | sed 's,[^a-z].*$,,')" - buildhost="$(echo $(dirname "$@") | sed 's,^\([^/]\+\)/pool-.*,\1,')" + buildhost="$(dirname "$@" | sed 's,^\([^/]\+\)/pool-.*,\1,')" echo "$package $pool $dist $buildhost" } @@ -219,7 +219,7 @@ cd "$PRVBASE" && find * -type f -name HINTS -exec grep -Pq "^Sections:.*$batchse set -- $(pkginfofromprvpkgdir "$prvpkgdir") package="$1" pool="$2" dist="$3" buildhost="$4" shift 4 - pkgsections="$(cat "$PRVBASE/$prvpkgdir/HINTS" | sectionsfromhintstream)" + pkgsections="$(sectionsfromhintstream < "$PRVBASE/$prvpkgdir/HINTS")" pkgsections="$(compactlist $pkgsections)" for section in $pkgsections; do subdir="$section/$package/$pool" |