From e93eca54a5f6113a18eccfd4ef22ee3a5de6b71d Mon Sep 17 00:00:00 2001 From: Jeevitha Kannan K S Date: Mon, 11 Nov 2024 21:43:56 +0530 Subject: [PATCH] add aarch64 (#910) --- .../Developer-tools/ngrok-setup.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/core/tabs/applications-setup/Developer-tools/ngrok-setup.sh b/core/tabs/applications-setup/Developer-tools/ngrok-setup.sh index 1ba6ff66..a45d7686 100644 --- a/core/tabs/applications-setup/Developer-tools/ngrok-setup.sh +++ b/core/tabs/applications-setup/Developer-tools/ngrok-setup.sh @@ -4,8 +4,17 @@ 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 @@ -13,4 +22,4 @@ installNgrok() { checkEnv checkEscalationTool -installNgrok \ No newline at end of file +installNgrok