瀏覽代碼

do not apply patches, if there is no

Karsten Böddeker 8 年之前
父節點
當前提交
0270b12a7b
共有 1 個文件被更改,包括 1 次插入1 次删除
  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