]> git.pond.sub.org Git - empserver/blobdiff - src/scripts/nightly/nightlybuild.sh
Don't try to let patch read from unreadable or nonexisting files.
[empserver] / src / scripts / nightly / nightlybuild.sh
index 7f24c8f29594a6887fd1271a61af8a6f0476547a..14596d9633068a0e2348460a2959b4d91f4f8b41 100755 (executable)
@@ -104,6 +104,7 @@ then
        echo "Applying local patches from ${LOCALPATCHDIR}:"
        for i in "${LOCALPATCHDIR}"/*.patch
        do
+               [ -r "${i}" ] || continue
                if patch -Np0 < "${i}" >/dev/null
                then
                        echo "${i}: OK"