     shell.on 'exit', ->
         cloud9.kill() if shell.isShell and not settings.detach and cloud9
     shell.cmd 'cloud9 start', 'Start Cloud9', (req, res, next) ->
-        args = [];
+        args = []
         detached = not shell.isShell or settings.detach
         args.push '-w'
         args.push settings.workspace


fs = require('fs')
path = require('path')
exec = require('child_process').exec

module.exports = (settings) ->
    # Validation

            args.push '-p'
            args.push settings.port
        if detached
            args.push '</dev/null'
            args.push '>' + settings.stdout
            args.push '2>' + settings.stderr
        cloud9 = spawn 'cloud9', args #, {setsid: true}
        if detached
            pidfile = settings.pidfile or '/tmp/cloud9.pid'
            fs.writeFileSync pidfile, '' + cloud9.pid
