fix/support-ostype-linux-sbtn

This commit is contained in:
Simon 2024-11-18 11:11:20 +01:00 committed by GitHub
parent 55e90d2448
commit 387e187143
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

2
sbt
View File

@ -180,7 +180,7 @@ acquire_sbtn () {
local archive_target=
local url=
local arch="x86_64"
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
if [[ "$OSTYPE" == "linux-gnu"* || "$OSTYPE" == "linux"* ]]; then
arch=$(uname -m)
if [[ "$arch" == "aarch64" ]] || [[ "$arch" == "x86_64" ]]; then
archive_target="$p/sbtn-${arch}-pc-linux-${sbtn_v}.tar.gz"