Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 17 lines (12 sloc) 335 Bytes
#!/bin/sh
#
# See http://www.browserstack.com/local-testing to get the jar file.
KEY_FILE="$HOME/.browser-stack.key"
if [ ! -f $KEY_FILE ]; then
echo "Error: Can't find $KEY_FILE"
exit 1
fi
KEY="$(cat $KEY_FILE)"
PORT="${1:-3000}"
HOST="${2:-localhost}"
java -jar /usr/local/share/BrowserStackTunnel.jar $KEY $HOST,$PORT,0