2
0
Fork 0

sh.zio.notify: fix host emoji not working, fix certain case not working

main
Ducky 2024-04-02 00:52:30 +01:00
parent 49a5c08cad
commit 136e180328
2 changed files with 3 additions and 3 deletions

View File

@ -182,8 +182,8 @@ function trigger_notify() {
"$notify_prog" \
--invoked-by "$(basename $me_filename)" \
--level "$level" \
--message="$message" \
--title="$title"
--message "$message" \
--title "$title"
else
"$notify_prog" \
--file "$log_path" \

View File

@ -15,7 +15,7 @@ function get_host_emoji() {
hostname_length="${#hostname}"
if [[ "$hostname" =~ ([a-z]{2}[0-9]{2,3}) ]]; then
case "$hostname" in
case "${hostname:0:2}" in
"de") echo "🇩🇪" ;;
"fi") echo "🇫🇮" ;;
"fr") echo "🇫🇷" ;;