sh.zio.notify: fix host emoji not working, fix certain case not working
This commit is contained in:
parent
49a5c08cad
commit
136e180328
2 changed files with 3 additions and 3 deletions
|
@ -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 "🇫🇷" ;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue