diff options
author | Fabian Groffen <grobian@gentoo.org> | 2019-05-25 17:55:12 +0200 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2019-05-25 17:55:12 +0200 |
commit | a6267f74a20233bd45161370558ce0a11b47dca8 (patch) | |
tree | 32607b7b9db740d78bd3a182258267e3aff21074 /tests | |
parent | tests/qmanifest: try and work with old gpg (diff) | |
download | portage-utils-a6267f74a20233bd45161370558ce0a11b47dca8.tar.gz portage-utils-a6267f74a20233bd45161370558ce0a11b47dca8.tar.bz2 portage-utils-a6267f74a20233bd45161370558ce0a11b47dca8.zip |
tests/qmanifest: forgot about set -e, work around it
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/qmanifest/dotest | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/qmanifest/dotest b/tests/qmanifest/dotest index a6b1431..abab463 100755 --- a/tests/qmanifest/dotest +++ b/tests/qmanifest/dotest @@ -63,11 +63,10 @@ gpg_import() { local killpinentry="--pinentry-mode loopback" # see if gpg is new enough for killpinentry - echo "${pass}" | gpg -n ${killpinentry} "${args[@]}" - if [[ $? -ne 0 ]] ; then - echo "${pass}" | gpg "${args[@]}" - else + if echo "${pass}" | gpg -n ${killpinentry} "${args[@]}" ; then echo "${pass}" | gpg ${killpinentry} "${args[@]}" + else + echo "${pass}" | gpg "${args[@]}" fi } # import key and sanity check |