diff --git a/config/software/ruby.rb b/config/software/ruby.rb index 4742b0ff9..213f31e76 100644 --- a/config/software/ruby.rb +++ b/config/software/ruby.rb @@ -279,6 +279,12 @@ copy "#{project_dir}/bin/#{cmd}", "#{install_dir}/embedded/bin/#{cmd}" end end + + # Ruby 2.4 seems to mark rake.bat as read-only. + # Mark it as writable so that we can install other version of rake without + # running into permission errors. + command "attrib -r #{install_dir}/embedded/bin/rake.bat" + end end