Fix link script

main
Elbert Alias 5 years ago
parent 1924be9d14
commit cc6efa2224

@ -1,7 +1,7 @@
const fs = require('fs') const fs = require('fs')
const link = (src, dest) => { const link = (src, dest) => {
if (fs.statSync(dest).isFile()) { if (fs.existsSync(dest)) {
fs.unlinkSync(dest) fs.unlinkSync(dest)
} }