From b4fc92cf0c10f3e4ac76c28f5d337571180b23bd Mon Sep 17 00:00:00 2001 From: Eric Keller Date: Sat, 2 Sep 2017 19:20:18 +0200 Subject: [PATCH] remove curl stdout of http headers -s (silent mode) does not prevent curl to output headers to stdout --- tools/check_for_upgrade.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh index 45c337fc3..88085f8a6 100644 --- a/tools/check_for_upgrade.sh +++ b/tools/check_for_upgrade.sh @@ -39,7 +39,7 @@ then fi # -L follow redirect, -s silent, # --max-time overall operation timeout, -I only download headers -whence curl > /dev/null && curl -L -s --max-time 3 -I ${REMOTE} || return 0 +whence curl > /dev/null && curl -L -s --max-time 3 -I ${REMOTE} > /dev/null || return 0 if mkdir "$ZSH/log/update.lock" 2>/dev/null; then if [ -f ~/.zsh-update ]; then