From 30ad294d691a40be6ceb1b1877adf08117af5517 Mon Sep 17 00:00:00 2001 From: langfingaz Date: Wed, 28 Apr 2021 16:29:51 +0200 Subject: [PATCH] update build-all.sh --- build-all.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) mode change 100644 => 100755 build-all.sh 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