summaryrefslogtreecommitdiff
path: root/contrib/dmenu/passmenu
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-04-24 11:10:17 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-04-24 11:10:17 +0200
commitf7764184104315b620ddb39be691145863e089ab (patch)
treef6cd07e5495574689f95b296fa0cfbae981f236d /contrib/dmenu/passmenu
parent99b29e6fd6d448130882065b7fad87b1fe09727a (diff)
downloadpass-f7764184104315b620ddb39be691145863e089ab.tar.gz
pass-f7764184104315b620ddb39be691145863e089ab.tar.bz2
pass-f7764184104315b620ddb39be691145863e089ab.zip
dmenu: check for empty instead of ret code
Diffstat (limited to 'contrib/dmenu/passmenu')
-rwxr-xr-xcontrib/dmenu/passmenu2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/dmenu/passmenu b/contrib/dmenu/passmenu
index 5d9d454..41d98d8 100755
--- a/contrib/dmenu/passmenu
+++ b/contrib/dmenu/passmenu
@@ -9,4 +9,4 @@ password_files=( "${password_files[@]%.gpg}" )
password=$(printf '%s\n' "${password_files[@]}" | dmenu "$@")
-[ $? -eq 0 ] && pass -c "$password"
+[[ -n $password ]] && pass -c "$password"