test
This commit is contained in:
parent
3f752e8959
commit
5974bd496c
1 changed files with 2 additions and 2 deletions
|
@ -15,11 +15,11 @@
|
|||
if [ $CLASS == "Running" ]; then
|
||||
IP=`tailscale status --json | jq -r '.TailscaleIPs[0]'`
|
||||
ALT="IP: $IP"
|
||||
printf '{"text": "%s","class": "%s"", "alt": "%s"}\n' "$TEXT" "$CLASS" "$ALT"
|
||||
printf '{"text": "%s", "class": "%s", "alt": "%s"}\n' "$TEXT" "$CLASS" "$ALT"
|
||||
fi
|
||||
if [ $CLASS == "Stopped" ]; then
|
||||
ALT="Tailscale is not running"
|
||||
printf '{"text": "%s","class": "%s"", "alt": "%s"}\n' "$TEXT" "$CLASS" "$ALT"
|
||||
printf '{"text": "%s", "class": "%s", "alt": "%s"}\n' "$TEXT" "$CLASS" "$ALT"
|
||||
fi
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue