Browse Source

do not apply patches, if there is no

Karsten Böddeker 8 years ago
parent
commit
0270b12a7b
1 changed files with 1 additions and 1 deletions
  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