pash: hide command -v output
This commit is contained in:
parent
540ed1abc2
commit
7b3be8069c
6
pash
6
pash
|
@ -62,7 +62,7 @@ pw_copy() {
|
||||||
}
|
}
|
||||||
|
|
||||||
pw_list() {
|
pw_list() {
|
||||||
if command -v tree 2>/dev/null; then
|
if command -v tree >/dev/null 2>&1; then
|
||||||
tree --noreport
|
tree --noreport
|
||||||
|
|
||||||
else
|
else
|
||||||
|
@ -136,8 +136,8 @@ main() {
|
||||||
|
|
||||||
# Look for both 'gpg' and 'gpg2',
|
# Look for both 'gpg' and 'gpg2',
|
||||||
# preferring 'gpg2' if it is available.
|
# preferring 'gpg2' if it is available.
|
||||||
command -v gpg 2>/dev/null && gpg=gpg
|
command -v gpg >/dev/null 2>&1 && gpg=gpg
|
||||||
command -v gpg2 2>/dev/null && gpg=gpg2
|
command -v gpg2 >/dev/null 2>&1 && gpg=gpg2
|
||||||
|
|
||||||
[ "$gpg" ] ||
|
[ "$gpg" ] ||
|
||||||
die "GPG not found."
|
die "GPG not found."
|
||||||
|
|
Loading…
Reference in New Issue