mirror of
https://github.com/gaschz/qubes-pass.git
synced 2025-06-07 01:38:31 +02:00
Tag 0.0.21.
This commit is contained in:
parent
bd1d9b63c6
commit
2e8e479653
12
bin/qvm-pass
12
bin/qvm-pass
@ -197,6 +197,18 @@ if not any(x in sys.argv[1:] for x in ['--help', '-h', '-?']):
|
|||||||
opts = parser_for_subcommands.parse_args()
|
opts = parser_for_subcommands.parse_args()
|
||||||
args = None
|
args = None
|
||||||
|
|
||||||
|
if not opts.dest_vm:
|
||||||
|
try:
|
||||||
|
with open("/rw/config/pass-split-domain") as domain:
|
||||||
|
opts.dest_vm = domain.readlines()[0].strip()
|
||||||
|
except FileNotFoundError:
|
||||||
|
pass
|
||||||
|
if not opts.dest_vm:
|
||||||
|
usage("error: the QUBES_PASS_DOMAIN variable is not defined."
|
||||||
|
" Either create /rw/config/pass-split-domain with the VM containing"
|
||||||
|
" your pass setup, set the environment variable yourself,"
|
||||||
|
" or pass -d on the command line.",)
|
||||||
|
|
||||||
if opts.subcommand == "get-or-list":
|
if opts.subcommand == "get-or-list":
|
||||||
if opts.key:
|
if opts.key:
|
||||||
sys.exit(pass_read("get", opts.key))
|
sys.exit(pass_read("get", opts.key))
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
%define mybuildnumber %{?build_number}%{?!build_number:1}
|
%define mybuildnumber %{?build_number}%{?!build_number:1}
|
||||||
|
|
||||||
Name: qubes-pass
|
Name: qubes-pass
|
||||||
Version: 0.0.20
|
Version: 0.0.21
|
||||||
Release: %{mybuildnumber}%{?dist}
|
Release: %{mybuildnumber}%{?dist}
|
||||||
Summary: Inter-VM pass password management for Qubes OS AppVMs and StandaloneVMs
|
Summary: Inter-VM pass password management for Qubes OS AppVMs and StandaloneVMs
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
Loading…
x
Reference in New Issue
Block a user