mirror of
https://github.com/dylanaraps/pfetch.git
synced 2026-01-02 16:02:12 +01:00
oops
This commit is contained in:
2
pfetch
2
pfetch
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user