FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

replace wget with curl · docu9/sshcode@1eaed4c · GitHub

Repository navigation

Commit 1eaed4c

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

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎sshcode.go‎

Lines changed: 5 additions & 1 deletion
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)

Back | FazBrowse Home | New Git URL