Skip to content

Commit

Permalink
fea: update macos script
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Nov 2, 2024
1 parent 213b073 commit 56d64fd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ main_brew() {

# Enable file vault
fdesetup status
if yes_or_no 'Do you want to enable file vault?'; then
sudo fdesetup enable
if fdesetup status | grep "Off"; then
if yes_or_no 'Do you want to enable file vault?'; then
sudo fdesetup enable
fi
fi

# Show date
Expand Down Expand Up @@ -121,7 +123,8 @@ main_brew() {
sudo mdutil -a -i off

# Disable gatekeeper
sudo spctl --master-disable
msg 'Globally disabling the assessment system needs to be confirmed in System Settings means you need set application source from anywhere in the system settings' 'error'
sudo spctl --master-disable || true

# Bluetooth
# show in menu bar = 18, true
Expand Down

0 comments on commit 56d64fd

Please sign in to comment.