From 6d8bbe058abf956575ba026446748efc7f06e6c6 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Mon, 14 Oct 2024 20:29:14 +1100 Subject: [PATCH] fix: Update logos for tailscale script --- ts.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ts.sh b/ts.sh index 8bfefe8..bd9601c 100755 --- a/ts.sh +++ b/ts.sh @@ -60,7 +60,13 @@ if [ "$1" = "short" ]; then # Check if connected output=$(tailscale status) if [[ "$output" == *"stopped"* ]]; then - echo -e "${RED}󰕥${NC}" + echo -e "${RED}󰦞${NC}" + exit 0 + fi + # Get line for nwtux + device=$(echo "$output" | grep "nwtux") + if [[ "$device" == *"offline"* ]]; then + echo -e "${RED}󰦞${NC}" exit 0 fi @@ -71,7 +77,7 @@ if [ "$1" = "short" ]; then echo -e "${GREEN}󰕥${NC}" exit 0 fi - echo -e "${BLUE}󰕥${NC} $hostname" + echo -e "${BLUE}󰻌${NC} $hostname" exit 0 fi