fix: terminate option parsing for qvm commands

This commit is contained in:
Ben Grande 2024-06-19 15:12:22 +02:00
parent 99fb13856c
commit bf0a4bc914
No known key found for this signature in database
GPG key ID: 00C64E14F51F9E56
3 changed files with 17 additions and 17 deletions

View file

@ -45,10 +45,10 @@ elif command -v qrexec-client >/dev/null; then
if test "${authority}" = "@default"; then
authority="${default_qube}"
fi
if ! qvm-check "${authority}" >/dev/null 2>&1; then
if ! qvm-check -- "${authority}" >/dev/null 2>&1; then
die "Qube doesn't exist: '${authority}'"
fi
qvm-start --skip-if-running "${authority}"
qvm-start --skip-if-running -- "${authority}"
exec qrexec-client -tT -d "${authority}" -- "DEFAULT:QUBESRPC ${rpc_cmd} dom0"
fi

View file

@ -72,10 +72,10 @@ elif command -v qrexec-client >/dev/null; then
if test "${authority}" = "@default"; then
authority="${default_qube}"
fi
if ! qvm-check "${authority}" >/dev/null 2>&1; then
if ! qvm-check -- "${authority}" >/dev/null 2>&1; then
die "Qube doesn't exist: '${authority}'"
fi
qvm-start --skip-if-running "${authority}"
qvm-start --skip-if-running -- "${authority}"
log "->" qrexec-client -T -d "${authority}" -- "DEFAULT:QUBESRPC ${rpc_cmd} dom0"
exec qrexec-client -T -d "${authority}" -- "DEFAULT:QUBESRPC ${rpc_cmd} dom0"
fi