Skip to content

Commit

Permalink
Redirect PlistBuddy output streams to /dev/null (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjohnso5 authored May 15, 2024
1 parent a6a3a60 commit e487287
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/add-safari-permissions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ if csrutil status | grep -q 'disabled'; then

mkdir -p "$HOME/Library/WebDriver"
plist="$HOME/Library/WebDriver/com.apple.Safari.plist"
/usr/libexec/PlistBuddy -c 'delete AllowRemoteAutomation' "$plist" || true
/usr/libexec/PlistBuddy -c 'add AllowRemoteAutomation bool true' "$plist"
/usr/libexec/PlistBuddy -c 'delete AllowRemoteAutomation' "$plist" > /dev/null 2>&1 || true
/usr/libexec/PlistBuddy -c 'add AllowRemoteAutomation bool true' "$plist" > /dev/null 2>&1
fi
else
echo "Unable to add permissions! System Integrity Protection is enabled on this image"
Expand Down

0 comments on commit e487287

Please sign in to comment.