Bladeren bron

do not apply patches, if there is no

Karsten Böddeker 8 jaren geleden
bovenliggende
commit
0270b12a7b
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      build.sh

+ 1 - 1
build.sh

@@ -143,7 +143,7 @@ popd > /dev/null #${SITE_DIR}
 ### APPLY PATCHES TO GLUON
 progress "Applying Patches ..."
 git checkout -B patching "${BASE}"
-if [ "$(echo "${PATCH_DIR}"/*.patch)" ]; then
+if [ -d "${PATCH_DIR}" -a "$(echo ${PATCH_DIR}/*.patch)" ]; then
 	git am ${PATCH_DIR}/*.patch || (
 		git am --abort
 		git checkout patched