lib/gloo/verbs/execute.rb in gloo-2.3.1 vs lib/gloo/verbs/execute.rb in gloo-2.4.0

- old
+ new

@@ -23,11 +23,16 @@ expr = Gloo::Expr::Expression.new( @engine, @tokens.params ) cmd = expr.evaluate @engine.log.debug "starting cmd: #{cmd}" - pid = fork { exec( cmd ) } - Process.wait pid + platform = TTY::Platform.new + if platform.mac? + pid = fork { exec( cmd ) } + Process.wait pid + else + exec cmd + end # pid = spawn cmd # Process.wait pid @engine.log.debug "done executing cmd: #{cmd}"