Commit b177df195458ca54ead4493314fc6b815b2e14bd

Thomas de Grivel 2023-11-05T10:49:09

wip Darwin

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/lib/rbpkg.rb b/lib/rbpkg.rb
index ebed6f6..b935d2d 100644
--- a/lib/rbpkg.rb
+++ b/lib/rbpkg.rb
@@ -211,7 +211,9 @@ EOF
     cmd "ssh #{sh_host} rbpkg/bin/rbpkg_ci #{sh_quote(repo)} #{sh_quote(branch)} #{sh_quote(commit)}"
     sh_ci_dir = sh_quote(ci_dir)
     if `ssh #{sh_host} uname`.strip == "Darwin"
-      sh_ci_dir = sh_ci_dir.gsub(/^\/home\//, "/Users/")
+      sh_remote_ci_dir = sh_ci_dir.gsub(/^\/home\//, "/Users/")
+    else
+      sh_remote_ci_dir = sh_ci_dir
     end
     cmd! "rsync -a --exclude build #{sh_host}:#{sh_ci_dir}/. #{sh_ci_dir}"
   end