Commit e3e0bb49bd15d314501a61f65ef4f9b3717ae0b4

Thomas de Grivel 2023-11-05T09:43:50

ci dir on mac

diff --git a/lib/rbpkg.rb b/lib/rbpkg.rb
index 798f4a9..5924cd7 100644
--- a/lib/rbpkg.rb
+++ b/lib/rbpkg.rb
@@ -35,8 +35,8 @@ module Rbpkg
     end
   end
 
-  def self.ci_dir
-    "#{dir}/ci"
+  def self.ci_dir(parent = dir)
+    "#{parent}/ci"
   end
 
   def self.ci_build_dir
@@ -209,7 +209,7 @@ EOF
     verbose(3, "Rbpkg.ci_remote(#{repo.inspect}, #{branch.inspect}, #{commit.inspect}, #{host.inspect})")
     sh_host = sh_quote(host)
     cmd "ssh #{sh_host} rbpkg/bin/rbpkg_ci #{sh_quote(repo)} #{sh_quote(branch)} #{sh_quote(commit)}"
-    sh_ci_dir = sh_quote(ci_dir)
+    sh_ci_dir = "rbpkg/ci"
     cmd! "rsync -a --exclude build #{sh_host}:#{sh_ci_dir}/. #{sh_ci_dir}"
   end