Skip to content

Commit

Permalink
Update lib/workspace.js
Browse files Browse the repository at this point in the history
Co-authored-by: Tim Yang <tdy@users.noreply.github.com>
  • Loading branch information
echuber2 and tdy committed Oct 8, 2021
1 parent e666f5a commit 7c3050e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/workspace.js
Expand Up @@ -249,7 +249,7 @@ module.exports = {
const timestampSuffix = (new Date()).toISOString().substring(0,19).replace(/[^a-zA-Z0-9]/g, '-');
try {
// Move any existing directory out of the way to get a clean start.
await fse.move(fullRemotePath, fullRemotePath + '-bak-' + timestampSuffix, {overwrite: true});
await fse.move(fullRemotePath, `${fullRemotePath}-bak-${timestampSuffix}`, {overwrite: true});
} catch (err) {
// If the directory couldn't be moved because it didn't exist, ignore the error.
// But otherwise, rethrow it.
Expand Down

0 comments on commit 7c3050e

Please sign in to comment.