diff --git a/build-all.sh b/build-all.sh old mode 100644 new mode 100755 index 75ff60b..6257fe7 --- a/build-all.sh +++ b/build-all.sh @@ -2,9 +2,15 @@ # build all packages for PKG in pkg/*; do - cd "${PKG}" || exit - aur build -c || exit - cd ../.. || exit + # check if PKGBUILD exists, otherwise skip + [ -f "${PKG}/PKGBUILD" ] || { echo "${PKG} does not contain a PKGBUILD file - skipping this directory!"; continue; } + + cd "${PKG}" || exit + + aur build -c || exit + # makepkg -Ccsr || exit + + cd ../.. || exit done # push remote repository