From 96fa3f644d78281ca0c9ec7165ad2447417fb24d Mon Sep 17 00:00:00 2001 From: Giacomo Fiorin Date: Fri, 8 Mar 2024 11:55:00 -0500 Subject: [PATCH] Recognize openmm source tree in the parent directory as well --- update-colvars-code.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/update-colvars-code.sh b/update-colvars-code.sh index 567d53556..5c33a646f 100755 --- a/update-colvars-code.sh +++ b/update-colvars-code.sh @@ -143,9 +143,12 @@ copy_lepton() { if [ -d ${source}/openmm-source ] ; then OPENMM_SOURCE=${source}/openmm-source + elif [ -d ${source}/../openmm-source ] ; then + OPENMM_SOURCE=${source}/../openmm-source fi if [ -z "${OPENMM_SOURCE}" ] ; then + # Create a temp folder and download OpenMM into it OPENMM_SOURCE=$(mktemp -d /tmp/openmm-source-XXXXXX) fi