diff --git a/update-colvars-code.sh b/update-colvars-code.sh index 01a34bc5d..9d2361d0e 100755 --- a/update-colvars-code.sh +++ b/update-colvars-code.sh @@ -320,7 +320,10 @@ then done if [ -f ${source}/lammps/COLVARS.cmake.diff ] ; then + # Do not exit if the patch fails - already applied in development branch + set +e patch -p1 -N -d ${target} < ${source}/lammps/COLVARS.cmake.diff + set -e fi downloaded_pdf=0