Merge pull request from smoratinos/master

fix directory path in shell script
This commit is contained in:
Nick Winter 2014-01-05 11:03:19 -08:00
commit d5ee2307f8
3 changed files with 24 additions and 4 deletions

View file

@ -1,7 +1,14 @@
#!/bin/bash
# full script path include his name
_script="$(readlink -f ${BASH_SOURCE[0]})"
# Script location path (dir)
_base="$(dirname $_script)"
sleep 5
cd ~/Desktop/coco
cd $_base
cd ../
until node_modules/karma/bin/karma start; do
echo "Karma crashed with exit code $?. Respawning.." >&2
sleep 1

View file

@ -1,5 +1,11 @@
#!/bin/bash
#sleep 5
cd ~/Desktop/coco
# full script path include his name
_script="$(readlink -f ${BASH_SOURCE[0]})"
# Script location path (dir)
_base="$(dirname $_script)"
cd $_base
cd ../
node_modules/jasmine-node/bin/jasmine-node test/server/ --coffee --autotest --captureExceptions

View file

@ -1,4 +1,11 @@
#!/bin/bash
cd ~/Desktop/coco
# full script path include his name
_script="$(readlink -f ${BASH_SOURCE[0]})"
# Script location path (dir)
_base="$(dirname $_script)"
cd $_base
cd ../
node_modules/.bin/nodemon . --ext ".coffee|.js" --watch server --watch server.coffee --unittest