[bugfix] rm compliant about argument too long

This commit is contained in:
Klesh Wong 2021-01-16 20:43:13 +08:00
parent 6e6714aed8
commit 67cee9064e

View File

@ -24,7 +24,7 @@ lspkgs() {
uninstall() {
if [ -f "$FILES_PATH" ]; then
tac "$FILES_PATH" | grep -v '/$' | xargs sudo rm -f
tac "$FILES_PATH" | grep -v '/$' | xargs -n 10 -- sudo rm -f
fi
}