aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2020-11-03 05:48:58 +0200
committerDylan Araps <dylan.araps@gmail.com>2020-11-03 05:48:58 +0200
commita4f9cb96e9d6a82141beef46d4f676fa1c5b9b23 (patch)
tree4f9484cc5d46be191a6a0931b8d9aed912c103af
parent4bcc18e9a6e24ccf7aa095708fc277e8b1aca1f8 (diff)
downloadpfetch-a4f9cb96e9d6a82141beef46d4f676fa1c5b9b23.tar.gz
oops
-rwxr-xr-xpfetch2
1 files changed, 1 insertions, 1 deletions
diff --git a/pfetch b/pfetch
index c8fd87c..4c0c34b 100755
--- a/pfetch
+++ b/pfetch
@@ -6,7 +6,7 @@
# spamming '>/dev/null' throughout this function. This also guards
# against aliases and functions.
has() {
- _cmd=$(command -v "$1") >/dev/null || return 1
+ _cmd=$(command -v "$1") 2>/dev/null || return 1
[ -x "$_cmd" ] || return 1
}