Skip to content

Commit 699f44d

Browse files
authored
Merge pull request #274 from Derek-X-Wang/master
Update install.sh.twig for Apple Silicon Mac
2 parents 5a57afe + 8dc7de1 commit 699f44d

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)