summary refs log tree commit diff
path: root/pkgs/applications/version-management/gitlab-shell/fixes.patch
blob: 1c694266e470490bcfb9097abe2fbdace351d001 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/support/go_build.rb b/support/go_build.rb
index 82f94d2..40ba35e 100644
--- a/support/go_build.rb
+++ b/support/go_build.rb
@@ -25,9 +25,8 @@ module GoBuild
   def run!(env, cmd)
     raise "env must be a hash" unless env.is_a?(Hash)
     raise "cmd must be an array" unless cmd.is_a?(Array)
-  
-    if !system(env, *cmd)
-      abort "command failed: #{env.inspect} #{cmd.join(' ')}"
-    end
+    puts "Starting #{env.inspect} #{cmd.join(' ')}"
+    Process::wait(Process::spawn(env, *cmd))
+    abort "command failed: #{env.inspect} #{cmd.join(' ')}" unless $?.exitstatus == 0
   end
 end