Created
June 27, 2017 12:02
-
-
Save tcelestino/33f8179da86efc8acb1f296ea64e907a to your computer and use it in GitHub Desktop.
restart's localtunnel when it is stop
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
function localtunnel { | |
lt -s subdomain --port port_number | |
} | |
until localtunnel; do | |
echo "localtunnel server crashed" | |
sleep 2 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment