         file.save script, (err)=>
           return if KD.showError err
 
+          command = "bash #{path};exit"
+
+          if not inTerminal
+
+            new KDNotificationView
+              title: "Init script running in background..."
+
+            machine.getBaseKite().exec { command }
+              .then (res)->
+
+                new KDNotificationView
+                  title: "Init script executed"
+
+                info  "Init script executed : ", res.stdout  if res.stdout
+                error "Init script failed   : ", res.stderr  if res.stderr
+
+              .catch (err)->
+
+                new KDNotificationView
+                  title: "Init script executed successfully"
+                error "Init script failed:", err
+
+            return
+
           modal = @openTerminal
-            command       : "bash #{path};exit"
+            command       : command
             readOnly      : yes
             destroyOnExit : no
 

      Machine.State.Terminated
    ]

    isRunning  = machine.status.state is Machine.State.Running

    colorSelection = new ColorSelection selectedColor : @getOption 'colorTag'
    colorSelection.on "ColorChanged", @bound 'setColorTag'

        separator         : yes

      customView2         : colorSelection

    if running
      items['Run build script'].children =
        'In Terminal'   :
          callback      : @lazyBound "runBuildScript", inTerminal = yes
        'In Background' :
          callback      : @lazyBound "runBuildScript", inTerminal = no

    return items

