Skip to content

Commit

Permalink
Check if assessments are already disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
reitermarkus committed Nov 19, 2024
1 parent 4e44e16 commit 9b8b5f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/tasks/finder.rake
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ task :finder => :'brew:casks_and_formulae' do
end

# Disable Gatekeeper.
command sudo, '/usr/sbin/spctl', '--master-disable'
unless capture('spctl', '--status').match?(/disabled/)
command sudo, '/usr/sbin/spctl', '--master-disable'
end

# Show drives and servers in sidebar.
defaults 'com.apple.sidebarlists' do
Expand Down

0 comments on commit 9b8b5f6

Please sign in to comment.