nixpkgs/pkgs/applications/version-management/gitlab-shell/fixes.patch

17 lines
585 B
Diff
Raw Normal View History

2017-07-05 21:53:31 +00:00
diff --git a/support/go_build.rb b/support/go_build.rb
2018-03-14 13:04:39 +00:00
index 30a6b71..46b4dfa 100644
2017-07-05 21:53:31 +00:00
--- a/support/go_build.rb
+++ b/support/go_build.rb
2018-03-14 13:04:39 +00:00
@@ -26,8 +26,8 @@ module GoBuild
2017-07-05 21:53:31 +00:00
raise "env must be a hash" unless env.is_a?(Hash)
raise "cmd must be an array" unless cmd.is_a?(Array)
2018-04-25 17:55:58 +00:00
- unless system(env, *cmd)
2017-07-05 21:53:31 +00:00
- 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