From 33a1ef7246548bac99677e1a053bea403ad06e90 Mon Sep 17 00:00:00 2001 From: Simon Sobisch Date: Wed, 2 Nov 2022 07:26:01 +0100 Subject: [PATCH 1/2] output download messages / progress helping the user to recognize/handle issues, see discussion in #24 --- src/serverSetup.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/serverSetup.ts b/src/serverSetup.ts index f8465a1..08971df 100644 --- a/src/serverSetup.ts +++ b/src/serverSetup.ts @@ -222,9 +222,9 @@ if [[ ! -f $SERVER_SCRIPT ]]; then pushd $SERVER_DIR > /dev/null if [[ ! -z $(which wget) ]]; then - wget --tries=3 --timeout=10 --quiet -O vscode-server.tar.gz $SERVER_DOWNLOAD_URL + wget --tries=3 --timeout=10 -O vscode-server.tar.gz $SERVER_DOWNLOAD_URL elif [[ ! -z $(which curl) ]]; then - curl --retry 3 --connect-timeout 10 --location --silent --output vscode-server.tar.gz $SERVER_DOWNLOAD_URL + curl --retry 3 --connect-timeout 10 --location --output vscode-server.tar.gz $SERVER_DOWNLOAD_URL else echo "Error no tool to download server binary" print_install_results_and_exit 1 From f4d011629976561b6f59710335b380a51adad285 Mon Sep 17 00:00:00 2001 From: Jean Pierre Date: Mon, 12 Jun 2023 13:59:18 -0500 Subject: [PATCH 2/2] :lipstick: --- src/serverSetup.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/serverSetup.ts b/src/serverSetup.ts index 3353bd0..ce7fb34 100644 --- a/src/serverSetup.ts +++ b/src/serverSetup.ts @@ -317,9 +317,9 @@ if [[ ! -f $SERVER_SCRIPT ]]; then pushd $SERVER_DIR > /dev/null if [[ ! -z $(which wget) ]]; then - wget --tries=3 --timeout=10 --continue -O vscode-server.tar.gz $SERVER_DOWNLOAD_URL + wget --tries=3 --timeout=10 --continue --no-verbose -O vscode-server.tar.gz $SERVER_DOWNLOAD_URL elif [[ ! -z $(which curl) ]]; then - curl --retry 3 --connect-timeout 10 --location --output vscode-server.tar.gz $SERVER_DOWNLOAD_URL + curl --retry 3 --connect-timeout 10 --location --show-error --silent --output vscode-server.tar.gz $SERVER_DOWNLOAD_URL else echo "Error no tool to download server binary" print_install_results_and_exit 1