 
     for entry in config.template.run_after_copy
       console.log entry
-      exec entry, (error, stdout, stderr) =>
-        log.log error, stdout, stderr
+      cmd = spawn(entry, [], { stdio: 'inherit', cwd: "#{extractedThemeFolder}/..", shell: true })
+
+      cmd.on('data', (data) ->
+        console.log(data.toString())
+      )
+
+      cmd.on('error', (data) ->
+        console.error(data.toString())
+      )

fs      = require 'fs'
request = require 'request'
unzip   = require 'unzip'
exec    = require('child_process').exec;
path    = require 'path'
loader  = require 'ewg-config'
glob    = require 'glob'
mkdirp  = require 'mkdirp'
rmdir   = require 'rmdir'
log     = require 'ewg-logging'

localZip = "./tmp.zip"



    config = loader.loadRawYaml(wsConfig).development

    extractedThemeFolder = "#{path.dirname(wsConfig)}"

    # copy all files from unzipped folder to workspace
    m.moveFilesToParentDirectory extractedThemeFolder
