Commit graph

9 commits

Author SHA1 Message Date
martin f. krafft
d08a1b468f Remove unnecessary chdir calls
The `prefsCleaner.sh` script chdir()'s to the script's directory on
execution, which isn't necessary at all, and also means that has to
reside within the Firefox profile directory, rather than being callable
directly from the Git clone.

`updater.sh` has the same "problem", but honours the `-p` switch to let
the working directory be overridden.

This patch removes the unnecessary code, such that the `prefsCleaner.sh`
script works on `./user.js`.

Signed-off-by: martin f. krafft <madduck@madduck.net>
2022-05-04 07:05:41 +12:00
i-c-u-p
64bc683c3f
Made prefsCleaner.sh executable (#1416)
Changed permissions of prefsCleaner.sh from 644 to 755 to be able to run it via "./prefsCleaner.sh" with out first executing "chmod +x prefsCleaner.sh".
2022-04-08 07:03:43 +00:00
a1346054
6381b1aeb9
prefsCleaner.sh: Fix invalid regular expression (#1258) 2021-09-28 19:24:54 +00:00
a1346054
5cdea955e7
Simple maintenance improvements (#1255)
* Use direct check for existence of file

* Fix shellcheck warnings

* Unify codestyle in scripts

* Trim excess whitespace
2021-09-27 15:23:12 +00:00
earthlng
9018577a3e
v1.4 (#1189)
- add -s parameter to start immediately / skip prompt / run non-interactive

This is useful if the user wants to automate the process of updating the user.js and cleaning prefs.

- fQuit: error messages to stderr
- fFF_check: info msg to stderr

Better support for suppressing/redirecting stdout while still showing any error messages in the console, useful for example with `prefsCleaner.sh -s >/dev/null`
2021-06-07 11:18:40 +00:00
earthlng
f61d4a0d38
Update prefsCleaner.sh 2020-09-15 11:55:28 +00:00
earthlng
cd9fc110b0
v1.2
look for `lock` file instead of `webappsstore.sqlite-shm` to detect if firefox is running or not (with this profile)

see https://github.com/ghacksuserjs/ghacks-user.js/pull/405#issuecomment-581447586 and follow-up comments.

Thanks @atomGit for reporting the issue and @rusty-snake for confirming it.
2020-02-10 16:47:17 +00:00
claustromaniac
71adc43d17 v1.1 regex fix (#409) 2018-04-25 22:56:54 +02:00
claustromaniac
b4f1b4dbbf prefsCleaner.sh (for Linux/Mac) (#405)
Port of the prefsCleaner.bat for anything(?) with a bash shell.
2018-04-24 14:47:50 +02:00