Permalink
Browse files

Merge pull request #12048 from tjouan/app_generator-bin_perms-umask

Comply with current umask when generating new app
Conflicts:
	railties/lib/rails/generators/rails/app/app_generator.rb
  • Loading branch information...
1 parent e0fc5da commit 59a35610459da7368e79179c9d33bc6e4697adb1 @tenderlove tenderlove committed Aug 27, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/generators/rails/app/app_generator.rb
@@ -103,7 +103,7 @@ def script
directory "script" do |content|
"#{shebang}\n" + content
end
- chmod "script", 0755, :verbose => false
+ chmod "script", 0755 & ~File.umask, :verbose => false
end
def test

0 comments on commit 59a3561

Please sign in to comment.