From e70e1b746f8f090c4d0869eb7bad2865a699214f Mon Sep 17 00:00:00 2001
From: Wouter Deconinck <wdconinc@gmail.com>
Date: Tue, 31 May 2022 23:29:35 +0000
Subject: [PATCH] Bugfix to parse_cmd.sh: allow absence of minq2

---
 bin/parse_cmd.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/parse_cmd.sh b/bin/parse_cmd.sh
index 6bc1ba7..f2e6d24 100755
--- a/bin/parse_cmd.sh
+++ b/bin/parse_cmd.sh
@@ -108,7 +108,7 @@ elif [ -z $MINQ2 ] && [ ! -z $REQUIRE_MINQ2 ]; then
   echo "ERROR: MINQ2 not defined: --minq2 <energy>"
   print_the_help
   exit 1
-elif [ -z $MINQ2 ] && [ -z $REQUIRE_MINQ2 ]; then
+elif [ ! -z $MINQ2 ] && [ -z $REQUIRE_MINQ2 ]; then
   echo "ERROR: MINQ2 flag specified but not required"
   print_the_help
   exit 1
-- 
GitLab