Update clean script

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2019-11-03 19:01:03 +01:00
parent e715fb22eb
commit 95a438f8bd
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4

View file

@ -17,12 +17,11 @@ print_section "Remove unneeded dependencies"
mapfile -t UNNEEDED_DEPENDENCIES < <(yay -Qdtq)
yay -Rsnu "${UNNEEDED_DEPENDENCIES[@]}"
print_section "Clear makepkg files"
print_log "Deleting files in ${YELLOW}${XDG_DATA_HOME}/src/${RESET}"
rm -rf "${XDG_DATA_HOME}/src/"*
print_section "Cleaning files in ${YELLOW}/var/cache/pacman/pkg/${RESET}"
paccache -rk 1 -c "/var/cache/pacman/pkg/"
print_section "Clean yay cache"
yay -Sc
print_section "Cleaning files in ${YELLOW}${XDG_DATA_HOME}/pkg/${RESET}"
paccache -rk 1 -c "${XDG_DATA_HOME}/pkg"
print_section "Clean composer cache"
composer clearcache