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:
parent
7c9b506829
commit
1cb32d7d55
1 changed files with 7 additions and 2 deletions
|
@ -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" ]
|
||||
|
|
Loading…
Add table
Reference in a new issue