Mute error when detecting wget/curl
This commit is contained in:
parent
56c8fa868a
commit
edcfe337c3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue