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> | 2020-11-20 22:51:09 -0500 |
commit | 4e8af6df305e86892fb4116c781ea36e28f29fcd (patch) | |
tree | 3557175952f44c2808241ab2a76809acec163993 | |
parent | 0e6f16fd96f89b675f7748bbd21a70f6796c45e8 (diff) |
complete pbot notification
-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 8ebdc54..9c301ee 100755 --- a/src/abslibre-tools/librerelease +++ b/src/abslibre-tools/librerelease @@ -297,10 +297,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 } |