Skip to content

Commit

Permalink
add aarch64 (#910)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeevithakannan2 authored Nov 11, 2024
1 parent d860748 commit e93eca5
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions core/tabs/applications-setup/Developer-tools/ngrok-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,22 @@

installNgrok() {
if ! command_exists ngrok; then
printf "%b\n" "${YELLOW}Installing Ngrok...${RC}"
curl -sSLO https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.tgz | "$ESCALATION_TOOL" tar -xz -C /usr/local/bin
printf "%b\n" "${YELLOW}Installing Ngrok.${RC}"
case "$ARCH" in
x86_64)
url="https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.tgz"
;;
aarch64)
url="https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-arm64.tgz"
;;
esac
curl -sSL "$url" -o ngrok.tgz
"$ESCALATION_TOOL" tar -xzf ngrok.tgz -C /usr/local/bin
else
printf "%b\n" "${GREEN}Ngrok is already installed.${RC}"
fi
}

checkEnv
checkEscalationTool
installNgrok
installNgrok

0 comments on commit e93eca5

Please sign in to comment.