Commit 9e041f1b75cb182092df1d73cdb3e4545f89dc25

Thomas de Grivel 2023-02-22T17:32:56

sha256

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/rbpkg.rb b/lib/rbpkg.rb
index 9c39a6a..fa021dc 100644
--- a/lib/rbpkg.rb
+++ b/lib/rbpkg.rb
@@ -255,7 +255,7 @@ module Rbpkg
       c = "#{sh_quote(sha256)} #{sh_quote(path)} | cut -d ' ' -f 1"
       r = `#{c}`
       raise "#{sha256} #{path.inspect} failed" unless $?.success?
-      return "SHA256 (#{path}) = #{r}\n"
+      return "SHA256 (#{path}) = #{r}"
     end
     c = "#{sh_quote(sha256)} #{sh_quote(path)}"
     verbose(1, c)