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

Commit ff04977

Browse files
committed
add x86_64 check in downloadScript
1 parent f8ccd3a commit ff04977

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)