diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-04-24 11:10:17 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-04-24 11:10:17 +0200 |
commit | f7764184104315b620ddb39be691145863e089ab (patch) | |
tree | f6cd07e5495574689f95b296fa0cfbae981f236d /contrib | |
parent | 99b29e6fd6d448130882065b7fad87b1fe09727a (diff) |
dmenu: check for empty instead of ret code
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/dmenu/passmenu | 2 |
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" |