Commit dd4230f7222ebb7ea9f818d9e4d1984168462976

Thomas de Grivel 2023-02-26T23:44:57

rbpkg_ci

diff --git a/lib/rbpkg.rb b/lib/rbpkg.rb
index dfc3eb6..e55958c 100644
--- a/lib/rbpkg.rb
+++ b/lib/rbpkg.rb
@@ -314,7 +314,7 @@ EOF
   end
 
   def self.ncpu_fetch
-    `which nproc >/dev/null 2>&1 && nproc || which sysctl >/dev/null 2>&1 && sysctl -n hw.ncpu || echo 1`.strip.to_i
+    `which nproc >/dev/null 2>&1 && nproc || { which sysctl >/dev/null 2>&1 && sysctl -n hw.ncpu; } || echo 1`.strip.to_i
   end
 
   def self.obj_dir
diff --git a/lib/rbpkg/log.rb b/lib/rbpkg/log.rb
index eabf1c2..907112f 100644
--- a/lib/rbpkg/log.rb
+++ b/lib/rbpkg/log.rb
@@ -41,7 +41,7 @@ module Rbpkg
       <img src="#{img}" class="status-#{s.to_s.to_html}"/>
       #{path.to_html}
     </h1>
-    <pre><code>#{log.ansi_to_html}</code></pre>
+    <pre class="wrap"><code>#{log.ansi_to_html}</code></pre>
   </body>
 </html>
 EOF