Skip to content

Commit

Permalink
fix: fixes install script for apple x86
Browse files Browse the repository at this point in the history
  • Loading branch information
dutterbutter committed Jan 8, 2025
1 parent 8760bbb commit a0529e0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ function get_os_info() {
"Darwin")
os="apple-darwin"
arch=$(arch)
if [[ "$arch" == "i386" ]]; then
# Rosetta reports as i386, but we treat it as x86_64
arch="x86_64"
fi
;;
*)
echo "ERROR: anvil-zksync only supports Linux and MacOS! Detected OS: $unamestr"
Expand All @@ -101,6 +105,8 @@ function get_os_info() {
architecture="aarch64"
;;
*)
echo "Operating system: $os"
echo "Architecture: $arch"
echo "ERROR: Unsupported architecture detected!"
exit 1
;;
Expand Down

0 comments on commit a0529e0

Please sign in to comment.