diff options
author | Andreas Grapentin <andreas@grapentin.org> | 2022-01-18 19:51:54 +0100 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2022-08-29 10:30:48 -0400 |
commit | 31fc2b34ddbbe0ec1f3e716e37f44764f2d0b1b1 (patch) | |
tree | 432820b150197020961f484192d3e8a85e300219 | |
parent | baa5d3092625671562753342c3c494a3b176f8ad (diff) |
fixing pbot announce for null-delimited file_list
-rwxr-xr-x | src/abslibre-tools/librerelease | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/abslibre-tools/librerelease b/src/abslibre-tools/librerelease index 709d379..bab4c29 100755 --- a/src/abslibre-tools/librerelease +++ b/src/abslibre-tools/librerelease @@ -312,7 +312,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}" |