From a5c01c9104e6566e5546f938a513445b06670963 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 20 Feb 2022 19:46:31 +0100 Subject: bin/build-packages: tell, what packages were expected --- bin/build-packages | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/bin/build-packages b/bin/build-packages index 9c5ab03..8405579 100755 --- a/bin/build-packages +++ b/bin/build-packages @@ -730,11 +730,19 @@ while [ "${count}" -ne 0 ] && \ } | \ sort | \ uniq -u | \ - while read -r unexpected_package; do - >&2 printf 'removing unexpected build artifact "%s"\n' \ - "${unexpected_package}" - rm "${unexpected_package}"* - done + { + removed_something_unexpected=false + while read -r unexpected_package; do + >&2 printf 'removing unexpected build artifact "%s"\n' \ + "${unexpected_package}" + rm "${unexpected_package}"* + removed_something_unexpected=true + done + if "${removed_something_unexpected}"; then + >&2 printf 'I was only expecting:\n%s\n' \ + "${expected_packages}" + fi + } fi >&2 printf 'signing package(s)\n' find . -maxdepth 1 -type f -name '*.pkg.tar.zst' \ -- cgit v1.2.3-70-g09d2