#!/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 }