diff --git a/entrypoint.sh b/entrypoint.sh index 58d0cc0..694ddc3 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -34,7 +34,7 @@ if [[ "$1" == "cextrun" ]]; then poetry install if [[ "$RUNNING_MODE" == "local" ]] && [[ -f $EXTENSION_DIR/package.json ]]; then - test ! -L "node_modules" && ln -s /install_temp/node_modules . + test ! -d "node_modules" && test -d /install_temp/node_modules && ln -s /install_temp/node_modules . npm run build --if-present fi @@ -45,7 +45,7 @@ if [[ "$1" == "extension-test" ]] || [[ "$1" == "extension-devel" ]]; then poetry install if [[ "$RUNNING_MODE" == "local" ]] && [[ -f $EXTENSION_DIR/package.json ]]; then - test ! -L "node_modules" && ln -s /install_temp/node_modules . + test ! -d "node_modules" && test -d /install_temp/node_modules && ln -s /install_temp/node_modules . npm run build --if-present fi fi @@ -55,7 +55,7 @@ if [[ "$1" == *bash* ]] && [[ "$#" -eq 1 ]] && [[ -f pyproject.toml ]]; then poetry install if [[ "$RUNNING_MODE" == "local" ]] && [[ -f $EXTENSION_DIR/package.json ]]; then - test ! -L "node_modules" && ln -s /install_temp/node_modules . + test ! -d "node_modules" && test -d /install_temp/node_modules && ln -s /install_temp/node_modules . npm run build --if-present fi