From cc6efa2224a59fb981352b6a122625928f9ebd1a Mon Sep 17 00:00:00 2001 From: Elbert Alias <77259+AliasIO@users.noreply.github.com> Date: Sun, 14 Jun 2020 09:16:39 +1000 Subject: [PATCH] Fix link script --- bin/link.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/link.js b/bin/link.js index 03cae6de3..f59d20803 100755 --- a/bin/link.js +++ b/bin/link.js @@ -1,7 +1,7 @@ const fs = require('fs') const link = (src, dest) => { - if (fs.statSync(dest).isFile()) { + if (fs.existsSync(dest)) { fs.unlinkSync(dest) }