aboutsummaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
Diffstat (limited to 'tool')
-rwxr-xr-xtool/update-bundled_gems.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/tool/update-bundled_gems.rb b/tool/update-bundled_gems.rb
index 6b40595960..2f088804ef 100755
--- a/tool/update-bundled_gems.rb
+++ b/tool/update-bundled_gems.rb
@@ -2,13 +2,10 @@
BEGIN {
require 'rubygems'
date = nil
- if ENV.key?('GITHUB_OUTPUT')
- output = File.open(ENV['GITHUB_OUTPUT'], 'w')
- else
- output = STDERR
- end
}
END {
+ # STDOUT is not usable in inplace edit mode
+ output = $-i ? STDOUT : STDERR
output.print date.strftime("latest_date=%F") if date
}
unless /^[^#]/ !~ (gem = $F[0])