From dd942cd5b31947f6a514d4a916971011fbabc089 Mon Sep 17 00:00:00 2001 From: NAKAMURA Usaku Date: Tue, 30 Apr 2019 22:24:45 +0900 Subject: [PATCH] Use redirect keyword arguments instead of ">" --- tool/merger.rb | 2 +- tool/redmine-backporter.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tool/merger.rb b/tool/merger.rb index 5f48f2eeca..56b7b4a068 100755 --- a/tool/merger.rb +++ b/tool/merger.rb @@ -222,7 +222,7 @@ class << Merger def svn_mode? return @svn_mode if defined?(@svn_mode) - @svn_mode = system("svn info > #{IO::NULL} 2>&1") + @svn_mode = system("svn info", %i(out err) => IO::NULL) end # Prints the version of Ruby found in version.h diff --git a/tool/redmine-backporter.rb b/tool/redmine-backporter.rb index 1ac001bb6e..a7bce96fe2 100755 --- a/tool/redmine-backporter.rb +++ b/tool/redmine-backporter.rb @@ -436,7 +436,7 @@ eom next end - if system("svn info #{RUBY_REPO_PATH&.shellescape} > #{IO::NULL} 2>&1") # SVN + if system("svn info #{RUBY_REPO_PATH&.shellescape}", %i(out err) => IO::NULL) # SVN if log = find_svn_log("##@issue]") && /revision="(?\d+)/ =~ log rev = "r#{rev}" end