X-Git-Url: https://git.r.bdr.sh/rbdr/blog/blobdiff_plain/f91c2b4feb85933bc190712b45788d2f24fe851d..e8a4197dcaf454b4dbe76d5ddd84f63fa5693ab9:/lib/remote.js diff --git a/lib/remote.js b/lib/remote.js index 8b29c4e..373958f 100644 --- a/lib/remote.js +++ b/lib/remote.js @@ -1,4 +1,5 @@ -const { readFile, rm, writeFile } = require('fs/promises'); +const { readFile, writeFile } = require('fs/promises'); +const { rmIfExists } = require('./utils'); const internals = { strings: { @@ -17,7 +18,7 @@ module.exports = { async remove(remoteConfig) { - await rm(remoteConfig, { force: true }) + await rmIfExists(remoteConfig); }, async syncUp(remoteConfig, blogDirectory) {