summarylogtreecommitdiffstats
path: root/02-cleaner.patch
diff options
context:
space:
mode:
authorHanabishi2023-10-18 15:40:57 +0000
committerHanabishi2023-10-18 15:40:57 +0000
commitdf87d78c85104c446324577b5460d742f1d3e141 (patch)
treec6c17b8dbd4e19ac8155551579dd6167c0bc1b32 /02-cleaner.patch
parentad914f5f581e38c72d63f70b143ee4e465a2a70f (diff)
downloadaur-df87d78c85104c446324577b5460d742f1d3e141.tar.gz
New version (118.0)
Diffstat (limited to '02-cleaner.patch')
-rw-r--r--02-cleaner.patch25
1 files changed, 16 insertions, 9 deletions
diff --git a/02-cleaner.patch b/02-cleaner.patch
index d0dfc584da8a..371c46f4fd01 100644
--- a/02-cleaner.patch
+++ b/02-cleaner.patch
@@ -1,6 +1,6 @@
--- prefsCleaner.sh
+++ prefsCleaner.sh
-@@ -22,10 +16,0 @@
+@@ -11,10 +10,0 @@
-readonly CURRDIR=$(pwd)
-
-## get the full path of this script (readlink for Linux, greadlink for Mac with coreutils installed)
@@ -11,7 +11,7 @@
-
-
-AUTOUPDATE=true
-@@ -34,11 +18,0 @@
+@@ -23,11 +12,0 @@
-## download method priority: curl -> wget
-DOWNLOAD_METHOD=''
-if command -v curl >/dev/null; then
@@ -23,10 +23,10 @@
- echo -e "No curl or wget detected.\nAutomatic self-update disabled!"
-fi
-
-@@ -46,2 +19,0 @@
+@@ -35,2 +13,0 @@
- ## change directory back to the original working directory
- cd "${CURRDIR}"
-@@ -57,7 +29 @@
+@@ -46,7 +23 @@
- -d Don't auto-update prefsCleaner.sh"
-}
-
@@ -35,7 +35,7 @@
-
- $DOWNLOAD_METHOD "${tf}" "$1" &>/dev/null && echo "$tf" || echo '' # return the temp-filename or empty string on error
+"
-@@ -75,18 +40,0 @@
+@@ -64,18 +34,0 @@
-## returns the version number of a prefsCleaner.sh file
-get_prefsCleaner_version() {
- echo "$(sed -n '5 s/.*[[:blank:]]\([[:digit:]]*\.[[:digit:]]*\)/\1/p' "$1")"
@@ -54,16 +54,23 @@
- exit 0
-}
-
-@@ -132 +80 @@
+@@ -121 +74 @@
-while getopts "sd" opt; do
+while getopts "s" opt; do
-@@ -137,3 +84,0 @@
+@@ -126,3 +78,0 @@
- d)
- AUTOUPDATE=false
- ;;
-@@ -142,5 +86,0 @@
--
+@@ -132,3 +81,0 @@
-## change directory to the Firefox profile directory
-cd "$(dirname "${SCRIPT_FILE}")"
-
+@@ -138,5 +84,0 @@
+-elif [ -n "$(find ./ -user 0 -o -group 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
+- fQuit 1
+@@ -144,2 +85,0 @@
+-
-[ "$AUTOUPDATE" = true ] && update_prefsCleaner "$@"