Skip to content

Commit

Permalink
Merge pull request #110 from ahousseini/patch-2
Browse files Browse the repository at this point in the history
Update SIP status check
  • Loading branch information
grahampugh authored Sep 18, 2021
2 parents 0db039b + e35762a commit 4382951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erase-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,7 @@ END
fi

# determine SIP status, as the volume is required if SIP is disabled
/usr/bin/csrutil status | grep -q 'disabled' && sip="disabled" || sip="enabled"
/usr/bin/csrutil status | sed -n 1p | grep -q 'disabled' && sip="disabled" || sip="enabled"

# set install argument for erase option
install_args=()
Expand Down

0 comments on commit 4382951

Please # to comment.