From 6068e1e364c26218189deb32fe74e9d049dbdfa5 Mon Sep 17 00:00:00 2001 From: Von Welch Date: Tue, 22 Apr 2014 23:14:14 -0400 Subject: tests: Remove work-around for 'pass insert' in create_cred() --- tests/setup.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests/setup.sh') diff --git a/tests/setup.sh b/tests/setup.sh index 0400acc..e551cd3 100755 --- 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 -- cgit v1.2.3-70-g09d2