Skip to content

Commit

Permalink
Add darwin-arm64 not support hint for install.sh (pingcap#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 <71242396+ti-chi-bot@users.noreply.github.com>
  • Loading branch information
2 people authored and lucklove committed Mar 3, 2021
1 parent 2d88460 commit 28f4cf7
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 28f4cf7

Please sign in to comment.