From a713cef2a064c963c3dee5987cae2888102b34d5 Mon Sep 17 00:00:00 2001 From: Ben Grande Date: Mon, 15 Jul 2024 11:07:27 +0200 Subject: [PATCH] fix: stop parse options on double dashes --- salt/dom0/files/bin/qvm-port-forward | 1 + 1 file changed, 1 insertion(+) diff --git a/salt/dom0/files/bin/qvm-port-forward b/salt/dom0/files/bin/qvm-port-forward index 8345ed8..3fa59c1 100755 --- a/salt/dom0/files/bin/qvm-port-forward +++ b/salt/dom0/files/bin/qvm-port-forward @@ -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