mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
also remove reinstalled packages
This commit is contained in:
parent
1dd5e914b7
commit
e533d35cb0
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ _cleanup_install() {
|
|||
_cleanup_cache() {
|
||||
# remove packages from cache
|
||||
#shellcheck disable=SC2013
|
||||
for i in $(grep -w 'installed' /var/log/pacman.log | cut -d ' ' -f 4); do
|
||||
for i in $(grep 'installed' /var/log/pacman.log | cut -d ' ' -f 4); do
|
||||
rm -rf /var/cache/pacman/pkg/"${i}"-[0-9]*
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue