Workaround for csr-active-config E7030000

PS: Add gitignore
This commit is contained in:
Bat.bat
2019-10-30 21:18:18 +08:00
parent dc3fda327d
commit a4f4c80b7b
2 changed files with 8 additions and 4 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
.DS_Store
._*

View File

@@ -1,6 +1,6 @@
#!/bin/sh
sipChecker=($(csrutil status | awk '{ print $5 }'))
sipInfo=("$(csrutil status)")
systemVersion=($(sw_vers -productVersion | cut -d "." -f 2))
systemLanguage=($(locale | grep LANG | sed s/'LANG='// | tr -d '"' | cut -d "." -f 1))
@@ -68,7 +68,9 @@ downloadHost="https://raw.githubusercontent.com/xzhih/one-key-hidpi/master"
# downloadHost="https://raw.githubusercontent.com/xzhih/one-key-hidpi/dev"
# downloadHost="http://127.0.0.1:8080"
if [ "${sipChecker}" != "disabled." ]; then
if [[ "${sipInfo}" == *"Filesystem Protections: disabled"* ]] || [[ "$(awk '{print $5}' <<< "${sipInfo}")" == "disabled." ]]; then
:
else
echo "${disableSIP}";
exit 0
fi