1
Fork 0
mirror of https://github.com/Steffo99/config-fish.git synced 2025-02-13 23:23:58 +00:00

Add default topic

This commit is contained in:
Steffo 2025-01-19 11:42:16 +01:00
parent 7c9b506829
commit 1cb32d7d55
Signed by: steffo
GPG key ID: 6B8E18743E7E1F86

View file

@ -23,8 +23,13 @@ if [ $status -eq 0 ]
log-t "Message is:" "$argv"
if [ -z "$_flag_topic" ]
log-f "Missing" "topic" "."
return 2
if [ -z "$hostname" ]
log-d "Missing" "topic and hostname" ", defaulting to 'general'."
set _flag_topic "general"
else
log-d "Missing" "topic" ", defaulting to 'host_$hostname'."
set _flag_topic "host_$hostname"
end
end
if [ -z "$_flag_priority" ]