From 05530db20e06801c7d60691c17a28cf8ce37238f Mon Sep 17 00:00:00 2001 From: Asher Date: Tue, 5 Jan 2021 15:28:42 -0600 Subject: [PATCH] Fix symlink_asar failing if link is broken This can happen if you `yarn release` without keeping node modules. --- ci/lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/lib.sh b/ci/lib.sh index 49f9ed951..96a413f1c 100755 --- a/ci/lib.sh +++ b/ci/lib.sh @@ -103,7 +103,7 @@ RELEASE_PATH="${RELEASE_PATH-release}" # Code itself but also extensions will look specifically in this directory for # files (like the ripgrep binary or the oniguruma wasm). symlink_asar() { - if [ ! -e node_modules.asar ]; then + if [ ! -L node_modules.asar ]; then if [ "${WINDIR-}" ]; then # mklink takes the link name first. mklink /J node_modules.asar node_modules