diff --git a/bin/ci-run-failed-specs b/bin/ci-run-failed-specs index b6d46534f9..a209e298e2 100755 --- a/bin/ci-run-failed-specs +++ b/bin/ci-run-failed-specs @@ -139,10 +139,12 @@ echo "" # Determine the working directory (check if we need to be in spec/dummy) WORKING_DIR="." -if [ ${#UNIQUE_SPECS[@]} -gt 0 ] && ([[ "${UNIQUE_SPECS[0]}" == *"spec/system"* ]] || [[ "${UNIQUE_SPECS[0]}" == *"spec/helpers"* ]]); then - if [ -d "spec/dummy" ]; then - WORKING_DIR="spec/dummy" - echo -e "${BLUE}Running from spec/dummy directory${NC}" +if [ ${#UNIQUE_SPECS[@]} -gt 0 ]; then + if [[ "${UNIQUE_SPECS[0]}" == *"spec/system"* ]] || [[ "${UNIQUE_SPECS[0]}" == *"spec/helpers"* ]]; then + if [ -d "spec/dummy" ]; then + WORKING_DIR="spec/dummy" + echo -e "${BLUE}Running from spec/dummy directory${NC}" + fi fi fi diff --git a/bin/ci-switch-config b/bin/ci-switch-config index 1ba8936679..a655e7d84c 100755 --- a/bin/ci-switch-config +++ b/bin/ci-switch-config @@ -255,9 +255,10 @@ EOF set_node_version "20.18.1" "$VERSION_MANAGER" # Run conversion script - # NOTE: This uses whatever 'ruby' is in PATH after version manager updates above. - # The version manager may not have reloaded yet, so ensure your current Ruby is - # compatible with script/convert (Ruby 2.6+ should work). + # NOTE: This executes 'ruby' before the version manager reloads in your current shell. + # The script/convert file requires Ruby 2.6+ and uses basic file I/O operations. + # Most modern Ruby versions (2.6+) are compatible. The version manager changes above + # only take effect after shell reload, so this uses your current Ruby installation. print_header "Running script/convert to downgrade dependencies" cd "$PROJECT_ROOT" ruby script/convert