Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/multi_repo/service/docker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def self.clear_cache
def self.ensure_small_image
return @has_small_image if defined?(@has_small_image)

return false unless system?("docker pull #{SMALL_IMAGE} &>/dev/null")
return false unless system?("docker pull #{SMALL_IMAGE} >/dev/null 2>&1")

@has_small_image = true
end
Expand Down
2 changes: 1 addition & 1 deletion lib/multi_repo/service/git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def self.clone(clone_source:, path:)

args = ["clone", clone_source, path]
command = Shellwords.join(["git", *args])
command << " &>/dev/null" unless ENV["GIT_DEBUG"]
command << " >/dev/null 2>&1" unless ENV["GIT_DEBUG"]
puts "+ #{command}" if ENV["GIT_DEBUG"] # Matches the output of MiniGit

raise MiniGit::GitError.new(args, $?) unless system(command)
Expand Down