Compare commits
2 Commits
bb8b4d1b71
...
b01b384d4a
| Author | SHA1 | Date | |
|---|---|---|---|
| b01b384d4a | |||
| bb7ae8514c |
@@ -12,7 +12,6 @@ users:
|
||||
extensions:
|
||||
- ublock-origin
|
||||
- passff
|
||||
- privacy-badger17
|
||||
- tree-style-tab
|
||||
- i-dont-care-about-cookies
|
||||
- floccus
|
||||
|
||||
@@ -12,7 +12,6 @@ users:
|
||||
extensions:
|
||||
- ublock-origin
|
||||
- passff
|
||||
- privacy-badger17
|
||||
- tree-style-tab
|
||||
- i-dont-care-about-cookies
|
||||
- floccus
|
||||
@@ -21,7 +20,6 @@ users:
|
||||
extensions:
|
||||
- ublock-origin
|
||||
- passff
|
||||
- privacy-badger17
|
||||
- tree-style-tab
|
||||
- i-dont-care-about-cookies
|
||||
manage_css: true
|
||||
|
||||
@@ -27,7 +27,6 @@ users:
|
||||
extensions:
|
||||
- ublock-origin
|
||||
- passff
|
||||
- privacy-badger17
|
||||
- tree-style-tab
|
||||
- i-dont-care-about-cookies
|
||||
- floccus
|
||||
@@ -36,7 +35,6 @@ users:
|
||||
extensions:
|
||||
- ublock-origin
|
||||
- passff
|
||||
- privacy-badger17
|
||||
- tree-style-tab
|
||||
- i-dont-care-about-cookies
|
||||
manage_css: true
|
||||
|
||||
@@ -11,7 +11,6 @@ users:
|
||||
default:
|
||||
extensions:
|
||||
- ublock-origin
|
||||
- privacy-badger17
|
||||
- tree-style-tab
|
||||
- i-dont-care-about-cookies
|
||||
manage_css: true
|
||||
@@ -34,7 +33,6 @@ users:
|
||||
extensions:
|
||||
- ublock-origin
|
||||
- passff
|
||||
- privacy-badger17
|
||||
- tree-style-tab
|
||||
- i-dont-care-about-cookies
|
||||
- floccus
|
||||
|
||||
@@ -62,12 +62,29 @@ readarray -d $'\0' -t packages_to_remove < <(comm --zero-terminated -13 \
|
||||
printf '%s\0' "${package}"
|
||||
done)
|
||||
|
||||
packages_removed=0
|
||||
|
||||
if (( "${#packages_to_remove[@]}" > 0 )) ; then
|
||||
echo "found the following explicitly installed packages that are not configured:"
|
||||
for pkg in "${packages_to_remove[@]}" ; do
|
||||
echo "${pkg}"
|
||||
done
|
||||
sudo pacman -Rcns "${packages_to_remove[@]}" "${@}" || exit $?
|
||||
packages_removed=1
|
||||
fi
|
||||
|
||||
readarray -t orphans < <(pacman -Qdtq)
|
||||
|
||||
if (( "${#orphans[@]}" > 0 )) ; then
|
||||
echo "found the following orphaned packages:"
|
||||
for pkg in "${orphans[@]}" ; do
|
||||
echo "${pkg}"
|
||||
done
|
||||
sudo pacman -Rcns "${orphans[@]}" "${@}" || exit $?
|
||||
packages_removed=1
|
||||
fi
|
||||
|
||||
if (( packages_removed)) ; then
|
||||
exit 123
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user