Skip to content

Commit 421dba9

Browse files
committed
Merge branch 'master' into feat-android-response-models
2 parents fed6a5a + 699f44d commit 421dba9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

templates/cli/install.sh.twig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ getSystemInfo() {
6464
if [ "$OS" == "linux" ] && [ "${{ spec.title | upper }}_INSTALL_DIR" == "/usr/local/bin" ]; then
6565
USE_SUDO="true"
6666
fi
67+
68+
# Need root access if its Apple Silicon
69+
if [ "$OS" == "darwin" ] && [[ "$(uname -a)" = *ARM64* ]]; then
70+
USE_SUDO="true"
71+
fi
6772

6873
printf "${GREEN}\nOS : $OS \nARCH : $ARCH \nREQUIRES ROOT : $USE_SUDO\n\n${NC}"
6974
}

0 commit comments

Comments
 (0)