Skip to content

Instantly share code, notes, and snippets.

@diegoponciano
Forked from joaolucasl/ngrok-install.sh
Last active January 25, 2018 14:41
Show Gist options
  • Save diegoponciano/1f3446a89907dd5bbff2490ff5c45a6e to your computer and use it in GitHub Desktop.
Save diegoponciano/1f3446a89907dd5bbff2490ff5c45a6e to your computer and use it in GitHub Desktop.
Ngrok install script
#!/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