diff --git a/notify_generic.sh b/notify_generic.sh index 3276334..2ef1d98 100644 --- a/notify_generic.sh +++ b/notify_generic.sh @@ -2,11 +2,11 @@ # generic sample, the "Hello World" of notification addons send_notification() { + Updates=("$@") + UpdToString=$( printf "%s\n" "${Updates[@]}" ) + FromHost=$(hostname) -FromHost=$(hostname) - -# platform specific notification code would go here -printf "\n%bGeneric notification addon:%b" "$c_green" "$c_reset" -printf "\nThe following docker packages on $FromHost need to be updated:\n$@\n" - -} \ No newline at end of file + # platform specific notification code would go here + printf "\n%bGeneric notification addon:%b" "$c_green" "$c_reset" + printf "\nThe following docker packages on %s need to be updated:\n%s\n" "$FromHost" "$UpdToString" +}