Check for any non-Linux platform rather than just macOS

Many other *Nix platforms besides macOS/Darwin and Linux exist; since these ML models are meant to be Linux-only, we replace the check for Darwin with a check for any non-Linux OS.
This commit is contained in:
Ryan Wenger 2023-04-05 10:01:07 -07:00 committed by GitHub
parent 78c3235eee
commit c4c0cab427
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
#! /bin/sh
if [[ "$(uname)" == "Darwin" ]]; then
if [[ "$(uname)" != "Linux" ]]; then
echo "Only supported on Linux."
exit 1
fi