summaryrefslogtreecommitdiff
path: root/aur
diff options
context:
space:
mode:
Diffstat (limited to 'aur')
-rwxr-xr-xaur4
1 files changed, 2 insertions, 2 deletions
diff --git a/aur b/aur
index fd1c5cb..2e3afbc 100755
--- a/aur
+++ b/aur
@@ -29,8 +29,8 @@ echo -ne "Edit PKGBUILD? "
read -r edit
[ "$edit" = "y" ] && $EDITOR PKGBUILD
echo Building...
-if makepkg -f; then
+if makepkg -srf; then
name=$1"-$(sed -n 's/pkgver=//p' PKGBUILD)-$(sed -n 's/pkgrel=//p' PKGBUILD)"
echo Installing...
- sudo pacman -U "$name"*.xz
+ sudo pacman -U $name*.xz
fi