mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Copy source mode to destination
This commit is contained in:
@@ -16,6 +16,8 @@ module.exports = (grunt) ->
|
||||
grunt.file.recurse source, (sourcePath, rootDirectory, subDirectory='', filename) ->
|
||||
destinationPath = path.join(destination, subDirectory, filename)
|
||||
grunt.file.copy(sourcePath, destinationPath)
|
||||
if grunt.file.exists(destinationPath)
|
||||
fs.chmodSync(destinationPath, fs.statSync(sourcePath).mode)
|
||||
else
|
||||
grunt.file.copy(source, destination)
|
||||
grunt.log.writeln("Copied #{source.cyan} to #{destination.cyan}.")
|
||||
|
||||
Reference in New Issue
Block a user