Commit 01d141cedab99b273cce31a726857462b5332db1

Thomas de Grivel 2023-11-05T22:40:15

wip profile

diff --git a/lib/rbpkg/repo.rb b/lib/rbpkg/repo.rb
index b5fbc88..6036768 100644
--- a/lib/rbpkg/repo.rb
+++ b/lib/rbpkg/repo.rb
@@ -65,14 +65,14 @@ class Rbpkg::Repo
     sh_ci_dir = sh_quote(ci_dir)
     sh_ci_profile = sh_quote(ci_dir + '/etc/profile')
     cmd! "#{sh_quote(Rbpkg.dir)}/bin/rbpkg_bootstrap -f #{sh_quote(ci_dir)}"
-    cmd! "export RBPKG_DIR=#{sh_ci_dir}; . ~/.profile; . #{sh_ci_profile}; rbpkg clone #{sh_name}"
-    cmd! "export RBPKG_DIR=#{sh_ci_dir}; . ~/.profile; . #{sh_ci_profile}; rbpkg checkout #{sh_quote(commit)} #{sh_name}" if commit
-    cmd! "export RBPKG_DIR=#{sh_ci_dir}; . ~/.profile; . #{sh_ci_profile}; rbpkg info #{sh_name}"
-    cmd! "export RBPKG_DIR=#{sh_ci_dir}; . ~/.profile; . #{sh_ci_profile}; rbpkg configure #{sh_name}"
-    cmd! "export RBPKG_DIR=#{sh_ci_dir}; . ~/.profile; . #{sh_ci_profile}; rbpkg build #{sh_name}"
-    cmd! "export RBPKG_DIR=#{sh_ci_dir}; . ~/.profile; . #{sh_ci_profile}; rbpkg test #{sh_name}"
-    cmd! "export RBPKG_DIR=#{sh_ci_dir}; . ~/.profile; . #{sh_ci_profile}; rbpkg install #{sh_name}"
-    cmd! "export RBPKG_DIR=#{sh_ci_dir}; . ~/.profile; . #{sh_ci_profile}; rbpkg info #{sh_name}"
+    cmd! ". ~/.profile; export RBPKG_DIR=#{sh_ci_dir}; . #{sh_ci_profile}; rbpkg clone #{sh_name}"
+    cmd! ". ~/.profile; export RBPKG_DIR=#{sh_ci_dir}; . #{sh_ci_profile}; rbpkg checkout #{sh_quote(commit)} #{sh_name}" if commit
+    cmd! ". ~/.profile; export RBPKG_DIR=#{sh_ci_dir}; . #{sh_ci_profile}; rbpkg info #{sh_name}"
+    cmd! ". ~/.profile; export RBPKG_DIR=#{sh_ci_dir}; . #{sh_ci_profile}; rbpkg configure #{sh_name}"
+    cmd! ". ~/.profile; export RBPKG_DIR=#{sh_ci_dir}; . #{sh_ci_profile}; rbpkg build #{sh_name}"
+    cmd! ". ~/.profile; export RBPKG_DIR=#{sh_ci_dir}; . #{sh_ci_profile}; rbpkg test #{sh_name}"
+    cmd! ". ~/.profile; export RBPKG_DIR=#{sh_ci_dir}; . #{sh_ci_profile}; rbpkg install #{sh_name}"
+    cmd! ". ~/.profile; export RBPKG_DIR=#{sh_ci_dir}; . #{sh_ci_profile}; rbpkg info #{sh_name}"
     Rbpkg::Log.ok(ci_log_name_commit(commit))
   end