From 1dcb91614f41848b3da01113fe3356b548304bc3 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 16 Jun 2017 10:24:52 +0200 Subject: bin/return-assignment: bugfix --- bin/return-assignment | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'bin/return-assignment') diff --git a/bin/return-assignment b/bin/return-assignment index af6b728..00d4cd4 100755 --- a/bin/return-assignment +++ b/bin/return-assignment @@ -115,13 +115,18 @@ if [ -n "${signature_errors}" ]; then fi # check if the sent packages are the expected ones -packages=*.pkg.tar.xz +packages="$( + ls -1 | \ + grep '\.pkg\.tar\.xz$' +)" package_errors="$( ( printf '%s\n' ${packages} | \ sed ' - s@\(-[^-]\+\)\{2\}-\([^-]\+\)\.pkg\.tar\.xz@ \2@ - / any$/{s|any$|i686|} + s@\(-[^-]\+\)\{2\}-\([^-]\+\)\.pkg\.tar\.xz$@ \2@ + / any$/{ + s|any$|i686| + } ' sed 's|$| i686|' "${work_dir}/package-infos/$1.$2.$3.packages" ) | \ -- cgit v1.2.3-70-g09d2