From f7764184104315b620ddb39be691145863e089ab Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 24 Apr 2014 11:10:17 +0200 Subject: dmenu: check for empty instead of ret code --- contrib/dmenu/passmenu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib') 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" -- cgit v1.2.3