Skip to content

Commit

Permalink
Escape characters
Browse files Browse the repository at this point in the history
  • Loading branch information
porter-stripe committed Apr 12, 2024
1 parent 9772ae8 commit a29d3bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ci_scripts/diff_public_interface.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'open3'
require 'shellwords'

def diff(old_path, new_path)
stdout, _stderr, _status = Open3.capture3("diff", "-u", old_path, new_path)
Expand All @@ -17,4 +18,4 @@ def diff(old_path, new_path)
exit
end

puts diff(ARGV[0], ARGV[1])
puts Shellwords.escape(diff(ARGV[0], ARGV[1]))

0 comments on commit a29d3bd

Please sign in to comment.