Update silent-oauth-prod.sh

This commit is contained in:
Michael
2026-01-15 15:27:13 +00:00
committed by GitHub
parent 08d187f5f3
commit a6ac170f03

View File

@@ -73,6 +73,8 @@ runAsUser() {
if [ -d "$DIR" ]; then
### Take action if $DIR exists ###
echo "$APPNA is installed."
app="/Applications/Tailscale.app"; ver=$(/usr/libexec/PlistBuddy -c 'Print :CFBundleShortVersionString' "$app/Contents/Info.plist" 2>/dev/null || echo "unknown")
echo "• Tailscale $ver ($( [ -f "$app/Contents/_MASReceipt/receipt" ] && echo "Mac App Store" || echo "Standalone" ))"
else
### Control will jump here if $DIR does NOT exists ###
echo