This commit is contained in:
Dylan Araps 2020-11-03 05:48:58 +02:00
parent 4bcc18e9a6
commit a4f9cb96e9
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

2
pfetch
View File

@ -6,7 +6,7 @@
# spamming '>/dev/null' throughout this function. This also guards # spamming '>/dev/null' throughout this function. This also guards
# against aliases and functions. # against aliases and functions.
has() { has() {
_cmd=$(command -v "$1") >/dev/null || return 1 _cmd=$(command -v "$1") 2>/dev/null || return 1
[ -x "$_cmd" ] || return 1 [ -x "$_cmd" ] || return 1
} }