diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-11-29 07:50:57 -0500 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-11-29 07:51:29 -0500 |
commit | 7f60cb322370501546df36dc93a50161948d0a22 (patch) | |
tree | 439cb86594a5aad590ae6171156bbb408b0401d3 | |
parent | 0963010a517fdc8c040b10c98922d7f818960e78 (diff) | |
download | cbt-7f60cb322370501546df36dc93a50161948d0a22.tar.gz cbt-7f60cb322370501546df36dc93a50161948d0a22.tar.bz2 cbt-7f60cb322370501546df36dc93a50161948d0a22.zip |
only start nailgun if compiling succeeded
-rwxr-xr-x | cbt | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -179,11 +179,11 @@ stage1 () { compiles=$? if [ $compiles -eq 0 ]; then touch -t $COMPILE_TIME $NAILGUN_INDICATOR - fi - if [ $use_nailgun -eq 0 ]; then - echo "Restarting background process (nailgun)" 1>&2 - ng-server 127.0.0.1:$NAILGUN_PORT >> $nailgun_out 2>> $nailgun_err & - sleep 1 + if [ $use_nailgun -eq 0 ]; then + echo "Starting background process (nailgun)" 1>&2 + ng-server 127.0.0.1:$NAILGUN_PORT >> $nailgun_out 2>> $nailgun_err & + sleep 1 + fi fi fi |