Last active
January 4, 2016 01:59
-
-
Save kevinburke/8552403 to your computer and use it in GitHub Desktop.
ngrok install
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://dl.ngrok.com/darwin_amd64/ngrok.zip -o /tmp/ngrok.zip | |
echo "Done!" | |
tar -xvf /tmp/ngrok.zip | |
if echo "$PATH" | grep /usr/local/bin; then | |
echo -e "\n\nEnter your password at the prompt (it won't show up on the screen, but it's typing)" | |
sudo mv ngrok /usr/local/bin | |
echo 'Done!' | |
else | |
echo "Enter your password at the prompt (it won't show up on the screen, but it's typing)" | |
sudo mv ngrok /usr/bin | |
echo 'Done!' | |
fi | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment