Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update prefsCleaner.sh
  • Loading branch information
earthlng committed Apr 24, 2023
1 parent 2f4b93a commit b117916
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions prefsCleaner.sh
Expand Up @@ -2,15 +2,15 @@

## prefs.js cleaner for Linux/Mac
## author: @claustromaniac
## version: 1.8
## version: 1.9

## special thanks to @overdodactyl and @earthlng for a few snippets that I stol..*cough* borrowed from the updater.sh

## DON'T GO HIGHER THAN VERSION x.9 !! ( because of ASCII comparison in update_prefsCleaner() )

# Check if running as root and if any files have the owner/group as root/wheel.
if [ "${EUID:-"$(id -u)"}" -eq 0 ]; then
printf 'You shouldn\'t run this with elevated privileges (such as with doas/sudo).\n'
printf "You shouldn't run this with elevated privileges (such as with doas/sudo).\n"
exit 1
elif [ -n "$(find ./ -user 0 -o -group 0)" ]; then
printf 'It looks like this script was previously run with elevated privileges,
Expand Down Expand Up @@ -149,7 +149,7 @@ echo -e "\n\n"
echo " ╔══════════════════════════╗"
echo " ║ prefs.js cleaner ║"
echo " ║ by claustromaniac ║"
echo " ║ v1.8 ║"
echo " ║ v1.9"
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."
Expand Down

0 comments on commit b117916

Please sign in to comment.