aboutsummaryrefslogtreecommitdiff
path: root/cbt
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2016-11-29 07:50:57 -0500
committerChristopher Vogt <oss.nsp@cvogt.org>2016-11-29 07:51:29 -0500
commit7f60cb322370501546df36dc93a50161948d0a22 (patch)
tree439cb86594a5aad590ae6171156bbb408b0401d3 /cbt
parent0963010a517fdc8c040b10c98922d7f818960e78 (diff)
downloadcbt-7f60cb322370501546df36dc93a50161948d0a22.tar.gz
cbt-7f60cb322370501546df36dc93a50161948d0a22.tar.bz2
cbt-7f60cb322370501546df36dc93a50161948d0a22.zip
only start nailgun if compiling succeeded
Diffstat (limited to 'cbt')
-rwxr-xr-xcbt10
1 files changed, 5 insertions, 5 deletions
diff --git a/cbt b/cbt
index 69f4cb4..2fc9e07 100755
--- a/cbt
+++ b/cbt
@@ -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