mirror of
https://github.com/PurpleComputing/Tailscale-scripts.git
synced 2026-09-17 03:10:38 +01:00
Update silent-oauth-prod.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user