-
-
Save diegoponciano/1f3446a89907dd5bbff2490ff5c45a6e to your computer and use it in GitHub Desktop.
Ngrok install script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pushd /tmp | |
echo "Downloading ngrok" | |
rm -f /tmp/ngrok.zip | |
curl --silent https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip -o /tmp/ngrok.zip | |
echo "Downloaded" | |
unzip /tmp/ngrok.zip | |
if echo "$PATH" | grep /usr/local/bin; then | |
echo -e "\n Enter pwd if prompted" | |
sudo mv ngrok /usr/local/bin | |
echo 'Done!' | |
else | |
echo "Enter pwd if prompted" | |
sudo mv ngrok /usr/bin | |
echo 'Done!' | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment