Skip files in apply_patches() as *{diff,patch} produces "*diff" with no .diff files...
authorSebastian Pipping <sebastian@pipping.org>
Thu, 13 Jan 2011 15:19:45 +0000 (16:19 +0100)
committerSebastian Pipping <sebastian@pipping.org>
Thu, 13 Jan 2011 15:19:45 +0000 (16:19 +0100)
gen_compile.sh

index 109e94903e3fafa4810fc426e7daf82a804a04b1..3ee8a6b31058c2cdfdacdfd7f48697ce77192791 100755 (executable)
@@ -203,6 +203,7 @@ apply_patches() {
                print_info 1 "${util}: >> Applying patches..."
                for i in ${GK_SHARE}/patches/${util}/${version}/*{diff,patch}
                do
+                       [ -f "${i}" ] || continue
                        patch_success=0
                        for j in `seq 0 5`
                        do