From 99419824e12ccfa082967248df356e15f456e8cd Mon Sep 17 00:00:00 2001 From: Martin Kletzander Date: Fri, 22 Mar 2019 12:33:29 +0100 Subject: Add support for quiet output of otp code command When using this option the output of `pass otp -q ...` is predictable and can be further used without parsing even when the password store is a repository as well. This is useful, for example, when using rofi-pass. The patch is written in a way that other commands can optionally use the quiet option for otp_insert as well. --- test/setup.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/setup.sh') diff --git a/test/setup.sh b/test/setup.sh index 5fd7173..4029530 100644 --- a/test/setup.sh +++ b/test/setup.sh @@ -72,3 +72,8 @@ test_pass_init() { rm -rf "$PASSWORD_STORE_DIR" "$PASS" init "${KEY[@]}" } + +test_pass_git_init() { + rm -rf "$PASSWORD_STORE_DIR" + "$PASS" init "${KEY[@]}" && "$PASS" git init +} -- cgit v1.2.3