tweak ppa script, remove packages

This commit is contained in:
moparisthebest
2018-06-19 16:56:15 -04:00
parent dd56a02b94
commit 1765d161e9
6 changed files with 9 additions and 197 deletions

9
ppa
View File

@@ -160,6 +160,15 @@ reinstall() {
paclist $repo_name | cut -d' ' -f1 | xargs sudo pacman -S --noconfirm
}
clean() {
# git clean -e 'aur/*' -dxn | grep -v .git
git clean -e '*.git*' -e 'aur/*' -dxf
}
undo() {
patch -p1 -R < undo.diff
}
if [ "$#" -gt 0 ]; then
[ -d "$src_dir" ] || mkdir -p "$src_dir"
[ -d "$pkg_dir" ] || mkdir -p "$pkg_dir"