Skip to content

Commit

Permalink
Minor fix for single user mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankk2308 committed Oct 1, 2018
1 parent 6f1341a commit 864bfad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ If you choose *"Never"* the reminder will never activate until you reinstall pur
If you are unable to boot into macOS, boot while pressing **⌘ + S**, then enter the following commands:
```bash
$ mount -uw /
$ purge-wrangler
$ purge-wrangler -r
```

## References
Expand Down
13 changes: 8 additions & 5 deletions purge-wrangler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,11 @@ create_launchagent() {
# Write preferences
write_preferences() {
PREF_RESULT=3
defaults write "${PW_PLIST_ID}" "${NVDA_WEB_INSTALLS_KEY}" -int ${NVDA_WEB_INSTALLS}
defaults write "${PW_PLIST_ID}" "${NVDA_WEB_PATCH_INSTALLS_KEY}" -int ${NVDA_WEB_PATCH_INSTALLS}
defaults write "${PW_PLIST_ID}" "${NVDA_WEB_UNINSTALLS_KEY}" -int ${NVDA_WEB_UNINSTALLS}
defaults write "${PW_PLIST_ID}" "${AMD_LEGACY_INSTALLS_KEY}" -int ${AMD_LEGACY_INSTALLS}
defaults write "${PW_PLIST_ID}" "${TI82_INSTALLS_KEY}" -int ${TI82_INSTALLS}
defaults write "${PW_PLIST_ID}" "${NVDA_WEB_INSTALLS_KEY}" -int ${NVDA_WEB_INSTALLS} 2>/dev/null
defaults write "${PW_PLIST_ID}" "${NVDA_WEB_PATCH_INSTALLS_KEY}" -int ${NVDA_WEB_PATCH_INSTALLS} 2>/dev/null
defaults write "${PW_PLIST_ID}" "${NVDA_WEB_UNINSTALLS_KEY}" -int ${NVDA_WEB_UNINSTALLS} 2>/dev/null
defaults write "${PW_PLIST_ID}" "${AMD_LEGACY_INSTALLS_KEY}" -int ${AMD_LEGACY_INSTALLS} 2>/dev/null
defaults write "${PW_PLIST_ID}" "${TI82_INSTALLS_KEY}" -int ${TI82_INSTALLS} 2>/dev/null
}

# Read preferences
Expand Down Expand Up @@ -1020,6 +1020,9 @@ manage_pw_preferences() {
Setting a preference for the above options will allow you to
forego the ${BOLD}Y/N${NORMAL} questions relative to your setup.
This feature will behave oddly if you have booted into Single User Mode.
Avoid changing settings in that case.
Choose an option to change your preference.\n"
read -n1 -p "${BOLD}Modify${NORMAL} [0-5]: " INPUT
echo
Expand Down

0 comments on commit 864bfad

Please sign in to comment.