Skip to content

Commit

Permalink
Improved parsing to properly not grab non-option arguments after an o…
Browse files Browse the repository at this point in the history
…ption as options
  • Loading branch information
mentalisttraceur committed May 6, 2015
1 parent 1e5b567 commit 3286986
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sshh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ do
break
;;
-*)
# Option detected, skip next argument.
shift
;;
*)
id=$1
Expand Down

0 comments on commit 3286986

Please sign in to comment.