]> granicus.if.org Git - graphviz/commitdiff
Fix gvmap.sh -? option to exit with zero exit status
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Sat, 26 Sep 2020 11:26:06 +0000 (13:26 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Fri, 2 Oct 2020 12:50:35 +0000 (14:50 +0200)
cmd/gvmap/gvmap.sh

index 58f0b2c0eddc121e6002e22cc0401041b7b11a6f..5dc7972bdd63bad0668eda8ebcbb496914cd3fd9 100755 (executable)
@@ -66,7 +66,7 @@ do
   \? )
     if [[ "$OPTARG" == '?' ]]
     then
-      getopts -a gvmap "$OPTSTR" x '-?'
+      (getopts -a gvmap "$OPTSTR" x '-?')
       exit 0
     else
       print -u 2 "gvmap: unknown flag $OPTARG - ignored"