Update logout-all.sh

This commit is contained in:
Michael
2024-04-16 17:09:17 +01:00
committed by GitHub
parent 8bf15f99a6
commit 99fc0fdc0b

View File

@@ -23,7 +23,7 @@ list=$(runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale switch --l
while read -r line; do
# Extract the ID using awk
id=$(echo "$line" | awk '{print $1}')
echo "$(date) Logging out of $id" >> /Library/Logs/Purple/TSLogout.log
# Echo the ID
runAsUser /Applications/Tailscale.app/Contents/MacOS/Tailscale switch $id
sleep 2