Browse Source

Merge pull request #301 from jprichardson/copySync-chmod

Remove chmod call from copySync
ci/travis-osximage
JP Richardson 8 years ago
committed by GitHub
parent
commit
f31b88e9e2
  1. 1
      lib/copy-sync/copy-file-sync.js

1
lib/copy-sync/copy-file-sync.js

@ -9,7 +9,6 @@ function copyFileSync (srcFile, destFile, options) {
if (fs.existsSync(destFile)) {
if (clobber) {
fs.chmodSync(destFile, parseInt('777', 8))
fs.unlinkSync(destFile)
} else {
var err = new Error('EEXIST: ' + destFile + ' already exists.')

Loading…
Cancel
Save