mirror of https://github.com/Chizi123/Arch-autobuild-repo.git

Joel Grunbaum
2021-04-03 b2dc9d1f1e0468e5ca04b8deb7e41cf90652d329
main.sh
@@ -46,6 +46,8 @@
#Build latest version of a package
# Usage: build_pkg [package name] [-f force]
function build_pkg {
   #first need to reset repo, revert any changes so update can happen
   git reset --hard
   #check if PKGBUILD has updated, don't rebuild if hasn't changed
   if [[ -n $(git pull | grep 'Already up to date.') && -z $(grep 'pkgver() {' PKGBUILD) && -z "$2" ]]; then
      return 2