File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -77,10 +77,10 @@ def any_newer?(target, deps)
7777 end
7878
7979 # run command in the shell. raise if exit is not zero
80- sig { params ( cmd : String ) . void }
80+ sig { params ( cmd : T :: Array [ String ] ) . void }
8181 def run ( cmd )
82- puts cmd
83- system cmd
82+ puts cmd . join ( " " )
83+ system ( * cmd )
8484 raise unless $?. success?
8585 end
8686
@@ -149,7 +149,14 @@ def merge_arch(
149149
150150 if any_newer? ( gen_path / "arch" / config_name / ".stamp" , deps )
151151 udb_gem_path = Bundler . definition . specs . find { |s | s . name == "udb" } . full_gem_path
152- run "#{ python_path } #{ udb_gem_path } /python/yaml_resolver.py merge #{ arch_path } #{ config_yaml [ "arch_overlay" ] } #{ gen_path } /arch/#{ config_name } "
152+ run [
153+ python_path . to_s ,
154+ "#{ udb_gem_path } /python/yaml_resolver.py" ,
155+ "merge" ,
156+ arch_path . to_s ,
157+ config_yaml [ "arch_overlay" ] . to_s ,
158+ "#{ gen_path } /arch/#{ config_name } "
159+ ]
153160 FileUtils . touch ( gen_path / "arch" / config_name / ".stamp" )
154161 end
155162 end
You can’t perform that action at this time.
0 commit comments