From edcfe337c32c4159a14e9619a034c76cc48ae385 Mon Sep 17 00:00:00 2001 From: deajan Date: Sun, 29 Nov 2020 13:04:31 +0100 Subject: [PATCH] Mute error when detecting wget/curl --- dev/common_install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dev/common_install.sh b/dev/common_install.sh index d91f367..6f57262 100644 --- a/dev/common_install.sh +++ b/dev/common_install.sh @@ -10,7 +10,7 @@ PROGRAM_BINARY=$PROGRAM".sh" PROGRAM_BATCH=$PROGRAM"-batch.sh" SSH_FILTER="ssh_filter.sh" -SCRIPT_BUILD=2020042901 +SCRIPT_BUILD=2020112901 INSTANCE_ID="installer-$SCRIPT_BUILD" ## osync / obackup / pmocr / zsnap install script @@ -276,14 +276,14 @@ function CopyServiceFiles { } function Statistics { - if type wget > /dev/null; then + if type wget > /dev/null 2>&1; then wget -qO- "$STATS_LINK" > /dev/null 2>&1 if [ $? == 0 ]; then return 0 fi fi - if type curl > /dev/null; then + if type curl > /dev/null 2>&1; then curl "$STATS_LINK" -o /dev/null > /dev/null 2>&1 if [ $? == 0 ]; then return 0