aboutsummaryrefslogtreecommitdiff
path: root/dpass
diff options
context:
space:
mode:
authorsinanmohd <sinan@firemail.cc>2023-03-20 17:17:12 +0530
committersinanmohd <sinan@firemail.cc>2023-03-20 17:17:12 +0530
commitc64fd9b62dc40008898b238dc5061490594e2ca7 (patch)
treee85b0fc3a1a3f56bedf2a0813d7562c35bded709 /dpass
parent605cedbc0477904d489cbeeab70ed12e81effb49 (diff)
clean: use logical operators instead of if
Diffstat (limited to 'dpass')
-rwxr-xr-xdpass4
1 files changed, 1 insertions, 3 deletions
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