ambevar-dotfiles/.scripts/abs-clean

13 lines
227 B
Bash
Executable File

#!/bin/sh
if [ $# -eq 0 ]; then
echo "Please give build folders as argument with .pkg.tar.xz in them."
exit 1
fi
for i; do
(cd "$i" && \
rm -rfv "src" "pkg" "srcpkg" && \
rm -fv *.pkg.tar.xz)
done