aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/password-store.sh
diff options
context:
space:
mode:
authorLenz Weber <mail@lenzw.de>2015-01-28 17:36:13 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2015-01-28 17:40:25 +0100
commitf07291ba3ba1ac5bfb22474faadfd702db088af2 (patch)
tree8be9f6fe08d8e9b7720d892d0f63afff8efb7437 /src/password-store.sh
parentSkip broken tests. (diff)
downloadpassword-store-f07291ba3ba1ac5bfb22474faadfd702db088af2.tar.xz
password-store-f07291ba3ba1ac5bfb22474faadfd702db088af2.zip
cygwin + gpg4win: convert paths to windows paths when calling gpg4win binary instead of cygwin's gpg binary
Diffstat (limited to 'src/password-store.sh')
-rwxr-xr-xsrc/password-store.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/password-store.sh b/src/password-store.sh
index afdaf39..c9a8f29 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -310,7 +310,7 @@ cmd_show() {
check_sneaky_paths "$path"
if [[ -f $passfile ]]; then
if [[ $clip -eq 0 ]]; then
- exec $GPG -d "${GPG_OPTS[@]}" "$passfile"
+ $GPG -d "${GPG_OPTS[@]}" "$passfile" || exit $?
else
local pass="$($GPG -d "${GPG_OPTS[@]}" "$passfile" | head -n 1)"
[[ -n $pass ]] || exit 1