Skip to content

Commit 4a510a4

Browse files
authored
prefsCleaner.sh v2.1
- remove group root/wheel check
1 parent e4dd5aa commit 4a510a4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

prefsCleaner.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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
133133
cd "$(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.
136136
if [ "${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,
140140
you 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
143143
fi
144144

@@ -148,7 +148,7 @@ echo -e "\n\n"
148148
echo " ╔══════════════════════════╗"
149149
echo " ║ prefs.js cleaner ║"
150150
echo " ║ by claustromaniac ║"
151-
echo " ║ v2.0"
151+
echo " ║ v2.1"
152152
echo " ╚══════════════════════════╝"
153153
echo -e "\nThis script should be run from your Firefox profile directory.\n"
154154
echo "It will remove any entries from prefs.js that also exist in user.js."

0 commit comments

Comments
 (0)