From c1250aec2ef19e38ab96f68bbdb40853e16fac8e Mon Sep 17 00:00:00 2001 From: Kent Dong Date: Mon, 10 Jul 2023 20:53:54 +0800 Subject: [PATCH] fix: Fix the incompatibility issue with Windows using pipeline (#426) --- tools/get-higress.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/get-higress.sh b/tools/get-higress.sh index 034d40f50..fa41a6f3b 100644 --- a/tools/get-higress.sh +++ b/tools/get-higress.sh @@ -167,9 +167,9 @@ download() { HIGRESS_TMP_FILE="$HIGRESS_TMP_ROOT/$HIGRESS_DIST" echo "Downloading $DOWNLOAD_URL..." if [ "${HAS_CURL}" == "true" ]; then - curl -SsL "$DOWNLOAD_URL" -o "$HIGRESS_TMP_FILE" + curl -SsL "$DOWNLOAD_URL" > "$HIGRESS_TMP_FILE" elif [ "${HAS_WGET}" == "true" ]; then - wget -q -O "$HIGRESS_TMP_FILE" "$DOWNLOAD_URL" + wget -q -O - "$DOWNLOAD_URL" > "$HIGRESS_TMP_FILE" fi }