Skip to content

Commit 05530db

Browse files
committed
Fix symlink_asar failing if link is broken
This can happen if you `yarn release` without keeping node modules.
1 parent aa05993 commit 05530db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ci/lib.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ RELEASE_PATH="${RELEASE_PATH-release}"
103103
# Code itself but also extensions will look specifically in this directory for
104104
# files (like the ripgrep binary or the oniguruma wasm).
105105
symlink_asar() {
106-
if [ ! -e node_modules.asar ]; then
106+
if [ ! -L node_modules.asar ]; then
107107
if [ "${WINDIR-}" ]; then
108108
# mklink takes the link name first.
109109
mklink /J node_modules.asar node_modules

0 commit comments

Comments
 (0)