summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2022-01-18 19:51:54 +0100
committerbill-auger <mr.j.spam.me@gmail.com>2022-01-28 10:34:26 -0500
commit7181d55d699c848c7239bd616e786c221ff11229 (patch)
tree6f8316fca7628ec1927f3cff6d06bad3d4ce564a
parent1cc9717adedda35b17aab0b91aebf5dec1c7f422 (diff)
fixing pbot announce for null-delimited file_list
-rwxr-xr-xsrc/abslibre-tools/librerelease2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/abslibre-tools/librerelease b/src/abslibre-tools/librerelease
index df47d85..acb4a8d 100755
--- a/src/abslibre-tools/librerelease
+++ b/src/abslibre-tools/librerelease
@@ -309,7 +309,7 @@ release_packages() {
fi
# notify pbot of the excellent work we have done
- local packages=$(grep -E '\.pkg\.tar\.[^\.]+$' ${file_list} | sed 's|.*/\([^/ ]*\)/[^\ ]*$|\1|' | xargs)
+ local packages=$(grep -zE '\.pkg\.tar\.[^\.]+$' ${file_list} | sed -z 's|.*/\([^/ ]*\)-[^-]*$|\1|' | sort -zu | xargs -0)
local login=${REPODEST_userinfo:-somebody} ; login=${login%%:*} ;
local pbot_say_cmd="which pbot-say && pbot-say ${login} just published: ${packages}"
ssh ${REPODEST_port:+-p "$REPODEST_port"} "${REPODEST_userhost}" "${pbot_say_cmd}"