fix: Update logos for tailscale script

This commit is contained in:
Nathan Woodburn 2024-10-14 20:29:14 +11:00
parent 29cafac682
commit 6d8bbe058a
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

10
ts.sh
View File

@ -60,7 +60,13 @@ if [ "$1" = "short" ]; then
# Check if connected # Check if connected
output=$(tailscale status) output=$(tailscale status)
if [[ "$output" == *"stopped"* ]]; then 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 exit 0
fi fi
@ -71,7 +77,7 @@ if [ "$1" = "short" ]; then
echo -e "${GREEN}󰕥${NC}" echo -e "${GREEN}󰕥${NC}"
exit 0 exit 0
fi fi
echo -e "${BLUE}󰕥${NC} $hostname" echo -e "${BLUE}󰻌${NC} $hostname"
exit 0 exit 0
fi fi