1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Comply with current umask when generating new app:

When creating a new application using the default rails generator
(`rails new my_app`), it will apply some permissions bypassing the
current process umask. The `bin' directory and any files inside it will
always be set a mode of 0755.

  This change removes the current umask bits from the mode applied by
the generator on the `bin' directory and its content.
This commit is contained in:
Thibault Jouan 2013-08-22 14:38:59 +00:00
parent 974335d4d0
commit 1cb5094903

View file

@ -68,7 +68,7 @@ module Rails
directory "bin" do |content|
"#{shebang}\n" + content
end
chmod "bin", 0755, verbose: false
chmod "bin", 0755 & ~File.umask, verbose: false
end
def config