1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-03-09 15:40:20 +00:00

Fix if file not exist

This commit is contained in:
Ycarus 2018-08-06 17:44:07 +02:00
parent 04b1e46e68
commit ec7d6d64bd

View file

@ -133,7 +133,7 @@ cd "$OMR_TARGET/source"
echo "Checking if UEFI patch is set or not"
if [ "$OMR_UEFI" = "yes" ] && [ "$OMR_TARGET" = "x86_64" ]; then
if ! patch -Rf -N -p1 -s --dry-run < ../../patches/uefi.patch; then
rm target/linux/x86/image/startup.nsh
rm -f target/linux/x86/image/startup.nsh
patch -N -p1 -s < ../../patches/uefi.patch
fi
else