Skip to content

Commit

Permalink
fix(esi-shell): support only linux (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
plexoos committed Mar 21, 2024
1 parent d447e45 commit 6cfb154
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions esi-shell
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ then
abort "Bash is required to interpret this script."
fi

# Fail fast if OS is not Linux
if [[ "$(uname)" != "Linux" ]]
then
abort "esi-shell is only supported on Linux."
fi

REQUIRED_SINGULARITY_VERSION=3.7.4
REQUIRED_DOCKER_VERSION=23.0.0

Expand Down Expand Up @@ -187,17 +193,6 @@ find_tool() {
done < <(which -a "$1")
}

# First check OS.
OS="$(uname)"
if [[ "${OS}" == "Linux" ]]
then
ESI_ON_LINUX=1
elif [[ "${OS}" == "Darwin" ]]
then
ESI_ON_MACOS=1
else
abort "esi-shell is only supported on macOS and Linux."
fi

MOUNT=""
for dir in /Volumes /Users /tmp; do
Expand Down

0 comments on commit 6cfb154

Please sign in to comment.