summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-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"