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

Commit 6ada57c

Browse files
authored
Merge pull request #111 from deansheather/master
add x86_64 check in downloadScript
2 parents 5bbc39f + 7806337 commit 6ada57c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ We currently support:
3636
- MacOS
3737
- WSL
3838

39+
For the remote server, we currently only support Linux `x86_64` (64-bit)
40+
servers with `glibc`. `musl` libc (which is most notably used by Alpine Linux)
41+
is currently not supported on the remote server:
42+
[#122](https://github.com/cdr/sshcode/issues/122).
43+
3944
## Usage
4045

4146
```bash

sshcode.go

+1
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ func downloadScript(codeServerPath string) string {
345345
return fmt.Sprintf(
346346
`set -euxo pipefail || exit 1
347347
348+
[ "$(uname -m)" != "x86_64" ] && echo "Unsupported server architecture $(uname -m). code-server only has releases for x86_64 systems." && exit 1
348349
pkill -f %v || true
349350
mkdir -p ~/.local/share/code-server %v
350351
cd %v

0 commit comments

Comments
 (0)