summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2020-11-20 22:44:18 -0500
committerbill-auger <mr.j.spam.me@gmail.com>2022-08-29 10:27:41 -0400
commitca2751bd6e6b85f4c504375d06771b8fad859fbe (patch)
treee694a5ad363052ee3d9ac833c9c1ccb8f417bea4
parent1cefe8d150c8cb0b05c9a99fa3358da0624aa392 (diff)
complete pbot notification
-rwxr-xr-xsrc/abslibre-tools/librerelease6
1 files 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
}