diff --git a/tasks/deploy/publish.js b/tasks/deploy/publish.js index c4468b8..a77a877 100644 --- a/tasks/deploy/publish.js +++ b/tasks/deploy/publish.js @@ -33,8 +33,7 @@ module.exports = function (grunt) { grunt.shipit.currentPath = path.join(grunt.shipit.config.deployTo, 'current'); - grunt.shipit.remote('rm -rf ' + grunt.shipit.currentPath + ' && ln -s ' + grunt.shipit.releasePath + - ' ' + grunt.shipit.currentPath, + grunt.shipit.remote('ln -nfs ' + grunt.shipit.releasePath + ' ' + grunt.shipit.currentPath, function (err) { if (err) return cb(err); grunt.log.oklns('Release published.'); @@ -42,4 +41,4 @@ module.exports = function (grunt) { }); } }); -}; \ No newline at end of file +};