diff --git a/system/.local/bin/clean b/system/.local/bin/clean index c7badf6..cb73c55 100755 --- a/system/.local/bin/clean +++ b/system/.local/bin/clean @@ -14,7 +14,8 @@ . utils print_section "Remove unneeded dependencies" -yay -R $(yay -Qdtq) +mapfile -t UNNEEDED_DEPENDENCIES < <(yay -Qdtq) +yay -R "${UNNEEDED_DEPENDENCIES[@]}" print_section "Clean yay cache" yay -Sc