password-store

Simple password manager using gpg and ordinary unix directories
git clone https://git.zx2c4.com/password-store
Log | Files | Refs | README | LICENSE

commit 6068e1e364c26218189deb32fe74e9d049dbdfa5
parent 6901013b90775d3148be339ef32390f07180e67f
Author: Von Welch <von@vwelch.com>
Date:   Tue, 22 Apr 2014 23:14:14 -0400

tests: Remove work-around for 'pass insert' in create_cred()

Diffstat:
Mtests/setup.sh | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/tests/setup.sh b/tests/setup.sh @@ -86,7 +86,7 @@ check_cred() { return 1 fi } - + # check_no_cred() # # Check to make sure the given credential does not exist. @@ -130,9 +130,7 @@ create_cred() { local password="$1" shift echo "Using password \"$password\" for $cred" - # TODO: Working around bug with 'pass insert' returning non-zero. - # Fix this code to exit on error when that is fixed. - $PASS insert -e "$cred" <<<"$password" || true + $PASS insert -e "$cred" <<<"$password" || return 1 else echo "Generating random password for $cred" if ! $PASS generate "${cred}" 24 > /dev/null; then