From fa0f85604189a7406d47567bd7da84eb82b25931 Mon Sep 17 00:00:00 2001 From: Yuriy Bezsonov Date: Tue, 24 Nov 2026 09:21:42 +0100 Subject: [PATCH] fix(ide): Load nvm in .zshrc, load.sh stops when artillery is missing --- apps/unicorn-store-spring/scripts/load.sh | 2 ++ infra/scripts/ide/shell.sh | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/apps/unicorn-store-spring/scripts/load.sh b/apps/unicorn-store-spring/scripts/load.sh index 2f0b39a17..ccdac5d75 100755 --- a/apps/unicorn-store-spring/scripts/load.sh +++ b/apps/unicorn-store-spring/scripts/load.sh @@ -20,6 +20,8 @@ TEST_DIR="${JAVA_ON_AWS_TEST_DIR:-${HOME}/java-on-aws/infra/scripts/test}" [ -x "${TEST_DIR}/benchmark.sh" ] && [ -x "${TEST_DIR}/getsvcurl.sh" ] \ || { echo "load.sh: shared test scripts not found in ${TEST_DIR}" >&2; exit 1; } +command -v artillery >/dev/null 2>&1 \ + || { echo "load.sh: artillery not found on PATH" >&2; exit 1; } URL="$("${TEST_DIR}/getsvcurl.sh" eks)" || exit 1 diff --git a/infra/scripts/ide/shell.sh b/infra/scripts/ide/shell.sh index 4f0d7ab97..6b56a3545 100755 --- a/infra/scripts/ide/shell.sh +++ b/infra/scripts/ide/shell.sh @@ -57,6 +57,10 @@ source $ZSH/oh-my-zsh.sh # Source workshop env vars (must be before kubectl completion) [ -f /etc/profile.d/workshop.sh ] && source /etc/profile.d/workshop.sh +# Node.js from nvm (tools.sh install_nodejs), as in .bashrc +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" + # Basic aliases alias ll='ls -la' alias k=kubectl