diff --git a/sshcode.go b/sshcode.go index a31e3d8..e185d15 100644 --- a/sshcode.go +++ b/sshcode.go @@ -345,6 +345,7 @@ func downloadScript(codeServerPath string) string { return fmt.Sprintf( `set -euxo pipefail || exit 1 +[ "$(uname -m)" != "x86_64" ] && echo "Unsupported server architecture $(uname -m). code-server only has releases for x86_64 systems." && exit 1 pkill -f %v || true mkdir -p ~/.local/share/code-server %v cd %v