From dca4c49770d0307be4d77597006bc9eb34048271 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Mon, 7 Mar 2022 21:08:17 -0500 Subject: [PATCH] Avoid trailing spaces in distributable script --- rb/build_dist.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rb/build_dist.rb b/rb/build_dist.rb index 0a664ba..cec95cf 100755 --- a/rb/build_dist.rb +++ b/rb/build_dist.rb @@ -60,7 +60,13 @@ combined_file.each do |line| end end -license = File.read("LICENSE.txt").gsub(/^/, "# ") +license = File.read("LICENSE.txt").gsub(/^(.*?)$/) do |line| + if line.size > 0 + "# #{line}" + else + "#" + end +end require "zlib" require "base64"