Update silent-auth.sh

This commit is contained in:
Michael
2023-12-27 14:23:00 +00:00
committed by GitHub
parent b5ca13c0a8
commit 7ebd3d0e04

View File

@@ -113,7 +113,7 @@ fi
# TAILSCALE ALREADY AUTHED CHECK
if [ "$PING2" -eq "1" ]; then
echo "Server $IP2 is reachable"
echo "Tailscale Ping Address: $IP2 is reachable"
echo "• Internet is working"
TSMNetName="$(runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale status | head -n 1 | awk '{print $3}' | awk -F'.' '{print $2}')"
TSMHostname="$(runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale status | head -n 1 | awk '{print $2}' | awk -F'.' '{print $1}')"
@@ -146,7 +146,7 @@ PING3=$(ping -c 1 "$IP2" | grep -c from)
# TAILSCALE FINAL AUTH CHECK
if [ "$PING3" -eq "1" ]; then
echo "Server $IP2 is reachable"
echo "Tailscale Ping Address: $IP2 is reachable"
echo "• Internet is working"
TSMNetName="$(runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale status | head -n 1 | awk '{print $3}' | awk -F'.' '{print $2}')"
TSMHostname="$(runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale status | head -n 1 | awk '{print $2}' | awk -F'.' '{print $1}')"