Skip to content

Commit

Permalink
Add darwin-arm64 not support hint for install.sh (#1123)
Browse files Browse the repository at this point in the history
* Add darwin-arm64 not support hint for install.sh 

The darwin-arm64 is not supported currently, and add some friendly hint.

* Update local_install.sh for darwin-arm64 hint

Co-authored-by: Ti Chi Robot <[email protected]>
  • Loading branch information
terasum and ti-chi-bot authored Feb 2, 2021
1 parent dc3a20e commit 3299053
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ if [ -z "$arch" ]; then
exit 1
fi

if [ "$os-$arch" == "darwin-arm64" ]; then
echo "Architecture darwin-arm64 not supported." >&2
exit 1
fi

if [ -z "$TIUP_HOME" ]; then
TIUP_HOME=$HOME/.tiup
fi
Expand Down
5 changes: 5 additions & 0 deletions pkg/cluster/template/install/local_install.sh.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ if [ -z "$arch" ]; then
exit 1
fi
if [ "$os-$arch" == "darwin-arm64" ]; then
echo "Architecture darwin-arm64 not supported." >&2
exit 1
fi
if [ -z "$TIUP_HOME" ]; then
TIUP_HOME=$HOME/.tiup
fi
Expand Down

0 comments on commit 3299053

Please sign in to comment.