Skip to content

Instantly share code, notes, and snippets.

@aubricus
Created October 2, 2013 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aubricus/6797763 to your computer and use it in GitHub Desktop.
Save aubricus/6797763 to your computer and use it in GitHub Desktop.
Run Jasmine in Chrome with correct permissions.
#! /bin/bash
read -r -p "This will restart Chrome, is that ok? [Y/n] " response
case $response in
[yY][eE][sS]|[yY])
killall Google\ Chrome
sleep 1s
open -a Google\ Chrome --args --allow-file-access-from-files
;;
*)
echo "Ok I won't do it then!"
exit
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment