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

Commit

Permalink
replace wget with curl
Browse files Browse the repository at this point in the history
  • Loading branch information
deansheather committed Jul 11, 2019
1 parent 2693c3f commit 1eaed4c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sshcode.go
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down

0 comments on commit 1eaed4c

Please sign in to comment.