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-01-01 17:25:33 -0500 |
commit | 8a0c82c23195369c41349c4c7d291e6add534506 (patch) | |
tree | 39f755596b872ffb838df0aa47f08d4b63626460 | |
parent | 2ac2fe089dec395205fa202c488627ea279b9c8a (diff) |
complete pbot notificationv20201120
-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 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 } |