Skip to content

Commit 5a7978a

Browse files
committed
Fix update-colvars-code.sh for Gromacs
grep command used to define COLVARS_VERSION was incorrect after the addition of COLVARS_PATCH_VERSION to colvars_version.h This id only used to update Gromacs code outside of CI, hence the lack of CI test failure.
1 parent 1cac6a2 commit 5a7978a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

update-colvars-code.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ if [ ${code} == "GROMACS" ] ; then
115115
fi
116116
fi
117117

118-
COLVARS_VERSION=$(grep define $(dirname $0)/src/colvars_version.h | cut -d' ' -f 3 | tr -d '"')
118+
COLVARS_VERSION=$(grep '^#define COLVARS_VERSION' $(dirname $0)/src/colvars_version.h | cut -d' ' -f 3 | tr -d '"')
119119
if [ -z "${COLVARS_VERSION}" ] ; then
120120
echo "Error reading Colvars version." >&2
121121
exit 1

0 commit comments

Comments
 (0)