diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2020-11-20 22:44:18 -0500 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2024-03-28 23:11:08 -0400 |
commit | 73ea09a2a76d99316f5292593c16171b2cb0e7e7 (patch) | |
tree | a07ea0a6c2d33cba0857183f8f8a78fbbad50a09 /src/abslibre-tools/librerelease | |
parent | 2447fd5502b6ed5c5bd9e036cc72a514e6431d6b (diff) |
complete pbot notification
Diffstat (limited to 'src/abslibre-tools/librerelease')
-rwxr-xr-x | src/abslibre-tools/librerelease | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/abslibre-tools/librerelease b/src/abslibre-tools/librerelease index b441a4c..908b1ae 100755 --- a/src/abslibre-tools/librerelease +++ b/src/abslibre-tools/librerelease @@ -298,10 +298,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}" \ - "if type pbot-say &>/dev/null; then pbot-say ${login} just published: ${packages}; fi" + 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}" return $EXIT_SUCCESS } |