Compare commits
3 Commits
1971cf3b99
...
e8db7bd6ff
Author | SHA1 | Date |
---|---|---|
Thorin-Oakenpants | e8db7bd6ff | |
earthlng | 4a510a4b4c | |
earthlng | e4dd5aa428 |
|
@ -2,7 +2,7 @@
|
|||
|
||||
## prefs.js cleaner for Linux/Mac
|
||||
## author: @claustromaniac
|
||||
## version: 2.0
|
||||
## version: 2.1
|
||||
|
||||
## special thanks to @overdodactyl and @earthlng for a few snippets that I stol..*cough* borrowed from the updater.sh
|
||||
|
||||
|
@ -132,13 +132,13 @@ done
|
|||
## change directory to the Firefox profile directory
|
||||
cd "$(dirname "${SCRIPT_FILE}")"
|
||||
|
||||
# Check if running as root and if any files have the owner/group as root/wheel.
|
||||
# Check if running as root and if any files have the owner as root/wheel.
|
||||
if [ "${EUID:-"$(id -u)"}" -eq 0 ]; then
|
||||
fQuit 1 "You shouldn't run this with elevated privileges (such as with doas/sudo)."
|
||||
elif [ -n "$(find ./ -user 0 -o -group 0)" ]; then
|
||||
elif [ -n "$(find ./ -user 0)" ]; then
|
||||
printf 'It looks like this script was previously run with elevated privileges,
|
||||
you will need to change ownership of the following files to your user:\n'
|
||||
find . -user 0 -o -group 0
|
||||
find . -user 0
|
||||
fQuit 1
|
||||
fi
|
||||
|
||||
|
@ -148,7 +148,7 @@ echo -e "\n\n"
|
|||
echo " ╔══════════════════════════╗"
|
||||
echo " ║ prefs.js cleaner ║"
|
||||
echo " ║ by claustromaniac ║"
|
||||
echo " ║ v2.0 ║"
|
||||
echo " ║ v2.1 ║"
|
||||
echo " ╚══════════════════════════╝"
|
||||
echo -e "\nThis script should be run from your Firefox profile directory.\n"
|
||||
echo "It will remove any entries from prefs.js that also exist in user.js."
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
## arkenfox user.js updater for macOS and Linux
|
||||
|
||||
## version: 3.9
|
||||
## version: 4.0
|
||||
## Author: Pat Johnson (@overdodactyl)
|
||||
## Additional contributors: @earthlng, @ema-pe, @claustromaniac, @infinitewarp
|
||||
|
||||
|
@ -393,11 +393,11 @@ update_updater "$@"
|
|||
getProfilePath # updates PROFILE_PATH or exits on error
|
||||
cd "$PROFILE_PATH" || exit 1
|
||||
|
||||
# Check if any files have the owner/group as root/wheel.
|
||||
if [ -n "$(find ./ -user 0 -o -group 0)" ]; then
|
||||
# Check if any files have the owner as root/wheel.
|
||||
if [ -n "$(find ./ -user 0)" ]; then
|
||||
printf 'It looks like this script was previously run with elevated privileges,
|
||||
you will need to change ownership of the following files to your user:\n'
|
||||
find . -user 0 -o -group 0
|
||||
find . -user 0
|
||||
cd "$CURRDIR"
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue