Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 96b935e

Browse files
committed
fix handling when a proper getopt(1) is available; the "--"
end-of-options marker wasn't recognized
1 parent 93b4b88 commit 96b935e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Doc/tools/push-docs.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ while [ "$#" -gt 0 ] ; do
6161
EXPLANATION="`cat $2`"
6262
shift 2
6363
;;
64+
--)
65+
shift 1
66+
break
67+
;;
6468
-*)
6569
echo "Unknown option: $1" >&2
6670
exit 2

0 commit comments

Comments
 (0)