File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 22
33# # prefs.js cleaner for Linux/Mac
44# # author: @claustromaniac
5- # # version: 2.0
5+ # # version: 2.1
66
77# # special thanks to @overdodactyl and @earthlng for a few snippets that I stol..*cough* borrowed from the updater.sh
88
@@ -132,13 +132,13 @@ done
132132# # change directory to the Firefox profile directory
133133cd " $( dirname " ${SCRIPT_FILE} " ) "
134134
135- # Check if running as root and if any files have the owner/group as root/wheel.
135+ # Check if running as root and if any files have the owner as root/wheel.
136136if [ " ${EUID:- " $( id -u) " } " -eq 0 ]; then
137137 fQuit 1 " You shouldn't run this with elevated privileges (such as with doas/sudo)."
138- elif [ -n " $( find ./ -user 0 -o -group 0 ) " ]; then
138+ elif [ -n " $( find ./ -user 0) " ]; then
139139 printf ' It looks like this script was previously run with elevated privileges,
140140you will need to change ownership of the following files to your user:\n'
141- find . -user 0 -o -group 0
141+ find . -user 0
142142 fQuit 1
143143fi
144144
@@ -148,7 +148,7 @@ echo -e "\n\n"
148148echo " ╔══════════════════════════╗"
149149echo " ║ prefs.js cleaner ║"
150150echo " ║ by claustromaniac ║"
151- echo " ║ v2.0 ║"
151+ echo " ║ v2.1 ║"
152152echo " ╚══════════════════════════╝"
153153echo -e " \nThis script should be run from your Firefox profile directory.\n"
154154echo " It will remove any entries from prefs.js that also exist in user.js."
You can’t perform that action at this time.
0 commit comments