From 2d9764baffb226e2145d3f140d5117b725254056 Mon Sep 17 00:00:00 2001 From: Dylan Date: Thu, 31 Mar 2016 19:43:11 +1100 Subject: [PATCH] Suppress errors in output --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index 0e40cd18..ede5f7e5 100755 --- a/neofetch +++ b/neofetch @@ -1633,11 +1633,11 @@ getpublicip () { fi if [ -z "$publicip" ] && type -p curl >/dev/null 2>&1; then - publicip="$(curl --max-time 10 -w '\n' "$public_ip_host")" + publicip="$(curl --max-time 10 -w '\n' "$public_ip_host" 2>/dev/null)" fi if [ -z "$publicip" ] && type -p wget >/dev/null 2>&1; then - publicip="$(wget -T 10 -qO- "$public_ip_host"; printf "%s")" + publicip="$(wget -T 10 -qO- "$public_ip_host" 2>/dev/null; printf "%s")" fi }