Skip to content

Commit cb1b384

Browse files
authored
Merge pull request #375 from gravitl/develop
netclient script hotfix
2 parents 0f608cb + c7b9222 commit cb1b384

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

scripts/netclient-install.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ fi
1111

1212
dist=netclient
1313

14-
echo "OS Version = $OSTYPE"
14+
echo "OS Version = $(uname)"
1515
echo "Netclient Version = $VERSION"
1616

17-
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
17+
if [[ "$(uname)" == "Linux"* ]]; then
1818
arch=$(uname -i)
1919
echo "CPU ARCH = $arch"
2020
if [ "$arch" == 'x86_64' ];
@@ -29,11 +29,8 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then
2929
then
3030
dist=netclient-arm64
3131
fi
32-
elif [[ "$OSTYPE" == "darwin"* ]]; then
32+
elif [[ "$(uname)" == "Darwin"* ]]; then
3333
dist=netclient-darwin
34-
else
35-
echo "This OS is not currently supported via automated install"
36-
exit 1
3734
fi
3835

3936
echo "Binary = $dist"

0 commit comments

Comments
 (0)