From ca2751bd6e6b85f4c504375d06771b8fad859fbe Mon Sep 17 00:00:00 2001 From: bill-auger Date: Fri, 20 Nov 2020 22:44:18 -0500 Subject: complete pbot notification --- src/abslibre-tools/librerelease | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/abslibre-tools/librerelease b/src/abslibre-tools/librerelease index 3539c84..709d379 100755 --- a/src/abslibre-tools/librerelease +++ b/src/abslibre-tools/librerelease @@ -312,10 +312,10 @@ release_packages() { fi # notify pbot of the excellent work we have done - local packages=${file_list} # TODO: parse package names? - this is gonna be messy + local packages=$(grep -E '\.pkg\.tar\.[^\.]+$' ${file_list} | sed 's|.*/\([^/ ]*\)/[^\ ]*$|\1|' | xargs) local login=${REPODEST_userinfo:-somebody} ; login=${login%%:*} ; - ssh ${REPODEST_port:+-p "$REPODEST_port"} "${REPODEST_userhost}" \ - "which pbot-say && pbot-say ${login} just published: ${packages}" + local pbot_say_cmd="which pbot-say && pbot-say ${login} just published: ${packages}" + ssh ${REPODEST_port:+-p "$REPODEST_port"} "${REPODEST_userhost}" "${pbot_say_cmd}" return $EXIT_SUCCESS } -- cgit v1.2.2