Skip to content

Commit

Permalink
Merge pull request #376 from gravitl/master
Browse files Browse the repository at this point in the history
change netclient install script
  • Loading branch information
afeiszli authored Oct 20, 2021
2 parents 0f608cb + cb1b384 commit 5198ce5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions scripts/netclient-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ fi

dist=netclient

echo "OS Version = $OSTYPE"
echo "OS Version = $(uname)"
echo "Netclient Version = $VERSION"

if [[ "$OSTYPE" == "linux-gnu"* ]]; then
if [[ "$(uname)" == "Linux"* ]]; then
arch=$(uname -i)
echo "CPU ARCH = $arch"
if [ "$arch" == 'x86_64' ];
Expand All @@ -29,11 +29,8 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then
then
dist=netclient-arm64
fi
elif [[ "$OSTYPE" == "darwin"* ]]; then
elif [[ "$(uname)" == "Darwin"* ]]; then
dist=netclient-darwin
else
echo "This OS is not currently supported via automated install"
exit 1
fi

echo "Binary = $dist"
Expand Down

0 comments on commit 5198ce5

Please sign in to comment.