mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 05:12:27 +00:00
Compare commits
2 Commits
7894935efe
...
deb4223089
Author | SHA1 | Date | |
---|---|---|---|
|
deb4223089 | ||
|
003c99cb52 |
|
@ -4,8 +4,17 @@
|
||||||
|
|
||||||
installNgrok() {
|
installNgrok() {
|
||||||
if ! command_exists ngrok; then
|
if ! command_exists ngrok; then
|
||||||
printf "%b\n" "${YELLOW}Installing Ngrok...${RC}"
|
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
|
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
|
else
|
||||||
printf "%b\n" "${GREEN}Ngrok is already installed.${RC}"
|
printf "%b\n" "${GREEN}Ngrok is already installed.${RC}"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user