Skip to content

Instantly share code, notes, and snippets.

@kevinburke
Last active January 4, 2016 01:59
Show Gist options
  • Save kevinburke/8552403 to your computer and use it in GitHub Desktop.
Save kevinburke/8552403 to your computer and use it in GitHub Desktop.
ngrok install
#!/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