Skip to content

Commit

Permalink
fix: stop parse options on double dashes
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-grande committed Jul 15, 2024
1 parent cf43265 commit a713cef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions salt/dom0/files/bin/qvm-port-forward
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ while test "${#}" -gt "0"; do
-n|--proto) proto="${2}"; shift;;
-s|--persistent) persistent=1; shift;;
-h|--help) usage;;
--) break;;
*) echo "Unsupported option" >&2; exit 1;;
esac
shift
Expand Down

0 comments on commit a713cef

Please sign in to comment.