This repository was archived by the owner on Jan 17, 2021. It is now read-only.
This repository was archived by the owner on Jan 17, 2021. It is now read-only.
Incompatible with wget from BusyBox #102
Closed
Description
Trying to use this against my Alpine Linux server, but receive the following error:
2019-05-12 15:07:05 INFO ensuring code-server is updated...
+ mkdir -p /home/steve/.local/share/code-server
+ cd /tmp
+ wget -N https://codesrv-ci.cdr.sh/latest-linux
wget: unrecognized option: N
BusyBox v1.29.3 (2019-01-24 07:45:07 UTC) multi-call binary.
Usage: wget [-c|--continue] [--spider] [-q|--quiet] [-O|--output-document FILE]
[--header 'header: value'] [-Y|--proxy on/off] [-P DIR]
[-S|--server-response] [-U|--user-agent AGENT] [-T SEC] URL...
Retrieve files via HTTP or FTP
--spider Only check URL existence: $? is 0 if exists
-c Continue retrieval of aborted transfer
-q Quiet
-P DIR Save to DIR (default .)
-S Show server response
-T SEC Network read timeout is SEC seconds
-O FILE Save to FILE ('-' for stdout)
-U STR Use STR for User-Agent header
-Y on/off Use proxy
2019-05-12 15:07:06 FATAL failed to update code-server: exit status 1
---ssh cmd---
ssh [email protected] /bin/bash
---download script---
set -euxo pipefail || exit 1
mkdir -p ~/.local/share/code-server
cd /tmp
wget -N https://codesrv-ci.cdr.sh/latest-linux
[ -f /tmp/codessh-code-server ] && rm /tmp/codessh-code-server
ln latest-linux /tmp/codessh-code-server
chmod +x /tmp/codessh-code-server
It looks like alpine uses a different wget
version, any way to detect and fix this?
Thanks
Metadata
Metadata
Assignees
Labels
No labels