Don't try to let patch read from unreadable or nonexisting files.
This commit is contained in:
parent
ca80c373bf
commit
40c88d77d8
1 changed files with 1 additions and 0 deletions
|
@ -104,6 +104,7 @@ then
|
||||||
echo "Applying local patches from ${LOCALPATCHDIR}:"
|
echo "Applying local patches from ${LOCALPATCHDIR}:"
|
||||||
for i in "${LOCALPATCHDIR}"/*.patch
|
for i in "${LOCALPATCHDIR}"/*.patch
|
||||||
do
|
do
|
||||||
|
[ -r "${i}" ] || continue
|
||||||
if patch -Np0 < "${i}" >/dev/null
|
if patch -Np0 < "${i}" >/dev/null
|
||||||
then
|
then
|
||||||
echo "${i}: OK"
|
echo "${i}: OK"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue