Skip to content

Commit

Permalink
chore(build): change Linux OS type match pattern to "linux"* in `se…
Browse files Browse the repository at this point in the history
…tup_wasi.sh` (#7049)

Some Linux distributions doesn't use `linux-gnu` as their `$OSTYPE`, an example is openSUSE Tumbleweed.

Changing it to `linux` to make it works in those distributions.
  • Loading branch information
ChihweiLHBird authored Aug 26, 2024
1 parent 8eb828b commit 058b88c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/setup_wasi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SYS_OS=$OSTYPE
SYS_ARCH=$(uname -m)

# Check if mac or linux
if [[ "$SYS_OS" == "linux-gnu"* ]]; then
if [[ "$SYS_OS" == "linux"* ]]; then
SYS_OS="linux"
elif [[ "$SYS_OS" == "darwin"* ]]; then
SYS_OS="macos"
Expand Down

0 comments on commit 058b88c

Please sign in to comment.