diff --git a/packages/shipit-deploy/src/tasks/deploy/publish.js b/packages/shipit-deploy/src/tasks/deploy/publish.js index d336b7c..8cb41cf 100644 --- a/packages/shipit-deploy/src/tasks/deploy/publish.js +++ b/packages/shipit-deploy/src/tasks/deploy/publish.js @@ -26,7 +26,7 @@ const publishTask = shipit => { 'ln -nfs ' + relativeReleasePath + ' current_tmp && ' + - 'mv -fT current_tmp current; ' + + 'mv -f current_tmp current; ' + 'fi', ) /* eslint-enable prefer-template */ diff --git a/packages/shipit-deploy/src/tasks/deploy/publish.test.js b/packages/shipit-deploy/src/tasks/deploy/publish.test.js index 4302f57..a7c0b67 100644 --- a/packages/shipit-deploy/src/tasks/deploy/publish.test.js +++ b/packages/shipit-deploy/src/tasks/deploy/publish.test.js @@ -33,7 +33,7 @@ describe('deploy:publish task', () => { await start(shipit, 'deploy:publish') expect(shipit.currentPath).toBe('/remote/deploy/current') expect(shipit.remote).toBeCalledWith( - 'cd /remote/deploy && if [ -d current ] && [ ! -L current ]; then echo "ERR: could not make symlink"; else ln -nfs releases/20141704123138 current_tmp && mv -fT current_tmp current; fi', + 'cd /remote/deploy && if [ -d current ] && [ ! -L current ]; then echo "ERR: could not make symlink"; else ln -nfs releases/20141704123138 current_tmp && mv -f current_tmp current; fi', ) }) })