aur/.util.sh

19 lines
298 B
Bash
Raw Normal View History

2021-07-26 20:34:17 +02:00
#!/bin/sh
update_pkg() {
updpkgsums > /dev/null 2>&1
if [ $? -eq 0 ]
then
makepkg --printsrcinfo > .SRCINFO
git add .SRCINFO PKGBUILD
git commit -m "$(basename $(pwd)): update to $ver" > /dev/null 2>&1
if [ $? -eq 0 ]
then
git push
fi
fi
}