mirror of https://github.com/coder/code-server.git
Fix symlink_asar failing if link is broken
This can happen if you `yarn release` without keeping node modules.
This commit is contained in:
parent
aa05993cf0
commit
05530db20e
|
@ -103,7 +103,7 @@ RELEASE_PATH="${RELEASE_PATH-release}"
|
||||||
# Code itself but also extensions will look specifically in this directory for
|
# Code itself but also extensions will look specifically in this directory for
|
||||||
# files (like the ripgrep binary or the oniguruma wasm).
|
# files (like the ripgrep binary or the oniguruma wasm).
|
||||||
symlink_asar() {
|
symlink_asar() {
|
||||||
if [ ! -e node_modules.asar ]; then
|
if [ ! -L node_modules.asar ]; then
|
||||||
if [ "${WINDIR-}" ]; then
|
if [ "${WINDIR-}" ]; then
|
||||||
# mklink takes the link name first.
|
# mklink takes the link name first.
|
||||||
mklink /J node_modules.asar node_modules
|
mklink /J node_modules.asar node_modules
|
||||||
|
|
Loading…
Reference in New Issue