Created
October 2, 2013 17:57
-
-
Save aubricus/6797763 to your computer and use it in GitHub Desktop.
Run Jasmine in Chrome with correct permissions.
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
#! /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