Skip to content
This repository was archived by the owner on Jan 17, 2021. It is now read-only.

Commit 1eaed4c

Browse files
committed
replace wget with curl
1 parent 2693c3f commit 1eaed4c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sshcode.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,11 @@ func downloadScript(codeServerPath string) string {
485485
pkill -f %v || true
486486
mkdir -p ~/.local/share/code-server %v
487487
cd %v
488-
wget -N https://codesrv-ci.cdr.sh/latest-linux
488+
curlflags="-o latest-linux"
489+
if [ -f latest-linux ]; then
490+
curlflags="$curlflags -z latest-linux"
491+
fi
492+
curl $curlflags https://codesrv-ci.cdr.sh/latest-linux
489493
[ -f %v ] && rm %v
490494
ln latest-linux %v
491495
chmod +x %v`,

0 commit comments

Comments
 (0)