From c64fd9b62dc40008898b238dc5061490594e2ca7 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Mon, 20 Mar 2023 17:17:12 +0530 Subject: clean: use logical operators instead of if --- dpass | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'dpass') diff --git a/dpass b/dpass index 99654b2..69c4673 100755 --- a/dpass +++ b/dpass @@ -42,9 +42,7 @@ search() do pass_path="${pass_path}/$(printf '%s\n' "$pass_path"/* | sed 's/.*\///g' | - "$menu" -l 25 -p "󰟵 ${pass_path##*/} ")" - - [ "$?" != 0 ] && + "$menu" -l 25 -p "󰟵 ${pass_path##*/} ")" || die "noting selected" done -- cgit v1.2.3