summaryrefslogtreecommitdiff
path: root/src/abslibre-tools/librerelease
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>2024-03-28 23:11:20 -0400
commit66c33210dba1483dd09a47090122cd5ac21404b7 (patch)
tree1962747301438f04d58132b9d216228c0a4f3662 /src/abslibre-tools/librerelease
parent73ea09a2a76d99316f5292593c16171b2cb0e7e7 (diff)
fixing pbot announce for null-delimited file_list
Diffstat (limited to 'src/abslibre-tools/librerelease')
-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 908b1ae..5ca2c29 100755
--- a/src/abslibre-tools/librerelease
+++ b/src/abslibre-tools/librerelease
@@ -298,7 +298,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="if type pbot-say &>/dev/null; then pbot-say ${login} just published: ${packages}; fi"
ssh ${REPODEST_port:+-p "$REPODEST_port"} "${REPODEST_userhost}" "${pbot_say_cmd}"