2
0
Fork 0

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

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

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 "🇫🇷" ;;