Skip to content

Commit

Permalink
Mark rake.bat as writable on windows (from ksubrama/rake.bat)
Browse files Browse the repository at this point in the history
Signed-off-by: Prajakta Purohit <prajakta@opscode.com>
  • Loading branch information
PrajaktaPurohit authored and elthariel committed Nov 19, 2017
1 parent d27bf23 commit 040b6db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/software/ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 040b6db

Please sign in to comment.