From 1eaed4cacd0f7f3d0262366d0841580007ba0048 Mon Sep 17 00:00:00 2001 From: Dean Sheather Date: Thu, 11 Jul 2019 13:55:57 +1000 Subject: [PATCH] replace wget with curl --- sshcode.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sshcode.go b/sshcode.go index f525126..ad2235e 100644 --- a/sshcode.go +++ b/sshcode.go @@ -485,7 +485,11 @@ func downloadScript(codeServerPath string) string { pkill -f %v || true mkdir -p ~/.local/share/code-server %v cd %v -wget -N https://codesrv-ci.cdr.sh/latest-linux +curlflags="-o latest-linux" +if [ -f latest-linux ]; then + curlflags="$curlflags -z latest-linux" +fi +curl $curlflags https://codesrv-ci.cdr.sh/latest-linux [ -f %v ] && rm %v ln latest-linux %v chmod +x %v`,