lib/origen/remote_manager.rb in origen-0.7.47 vs lib/origen/remote_manager.rb in origen-0.8.0

- old
+ new

@@ -317,15 +317,19 @@ version_file = dir.to_s + '/.current_version' if File.exist?("#{dir}/.initial_populate_successful") FileUtils.rm_f(version_file) if File.exist?(version_file) rc = RevisionControl.new remote: rc_url, local: dir rc.checkout version: prefix_tag(tag), force: true - `echo "#{tag}" >> "#{version_file}"` + File.open(version_file, 'w') do |f| + f.write tag + end else rc = RevisionControl.new remote: rc_url, local: dir rc.checkout version: prefix_tag(tag), force: true - `touch "#{dir}/.initial_populate_successful"` - `echo "#{tag}" >> "#{version_file}"` + FileUtils.touch "#{dir}/.initial_populate_successful" + File.open(version_file, 'w') do |f| + f.write tag + end end end end end