From ad3aad9090c2d592f0a63d6ff219ab46239d2d3c Mon Sep 17 00:00:00 2001
From: criscuol <alexis.criscuolo@pasteur.fr>
Date: Mon, 21 Oct 2019 16:57:26 +0200
Subject: [PATCH] fixed return code when displaying doc

---
 JolyTree.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/JolyTree.sh b/JolyTree.sh
index c99a642..d0a7224 100755
--- a/JolyTree.sh
+++ b/JolyTree.sh
@@ -33,7 +33,10 @@
 # = VERSIONS =                                                                                              #
 # ============                                                                                              #
 #                                                                                                           #
-  VERSION=1.1.181205ac                                                                                      #
+  VERSION=1.1b.191021ac                                                                                     #
+# + exit 0 when displaying the doc                                                                          #
+#                                                                                                           #
+# VERSION=1.1.181205ac                                                                                      #
 # + option -q to set desired probability of observing a random k-mer                                        #
 # + ability to be run on clusters managed by SLURM                                                          #
 #                                                                                                           #
@@ -100,6 +103,7 @@
     -t <int>        number of threads (default: 2)
 
 EOF
+    if [ "$1" = "-?" ] || [ "$1" = "-h" ] || [ $# -le 0 ]; then exit 0 ; fi                                 #
     exit 1 ;                                                                                                #
   fi                                                                                                        #
 #                                                                                                           #
-- 
GitLab