commit
5d6b656e24
2 changed files with 6 additions and 2 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
.DS_Store
|
||||
._*
|
6
hidpi.sh
6
hidpi.sh
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
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))
|
||||
|
||||
|
@ -72,7 +72,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
|
||||
|
|
Loading…
Reference in a new issue