Commit ca3caef9 authored by Aral Balkan's avatar Aral Balkan

Build script no longer panics if temporary backup files exist

parent 19b210f8
......@@ -168,12 +168,12 @@ async function build () {
function removeMkcertBinary(platform) {
const fileName = `mkcert-v1.4.0-${platform}`
fs.moveSync(path.join(mkcertBinaryPath, fileName), path.join(mkcertTemporaryPath, fileName))
fs.moveSync(path.join(mkcertBinaryPath, fileName), path.join(mkcertTemporaryPath, fileName), {overwrite: true})
}
function removeHugoBinary(platform) {
const fileName = `hugo-v0.64.0-${platform}`
fs.moveSync(path.join(hugoBinaryPath, fileName), path.join(hugoTemporaryPath, fileName))
fs.moveSync(path.join(hugoBinaryPath, fileName), path.join(hugoTemporaryPath, fileName), {overwrite: true})
}
function restoreMkcertBinary(platform) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment