From 321d471eef3e7f15b73238ad03226bcb85c4b1ed Mon Sep 17 00:00:00 2001 From: Martin Troeger Date: Mon, 11 May 2026 19:40:27 +0200 Subject: [PATCH] fix: bootstrap.sh erkennt bereits installiertes fnm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Schlägt curl-Installation nur vor wenn fnm tatsächlich fehlt. Verhindert Endlosschleife bei installiertem fnm ohne Node.js. Co-Authored-By: Claude Opus 4.6 --- bootstrap.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bootstrap.sh b/bootstrap.sh index 5ec4333..7524c3a 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -82,9 +82,11 @@ if command -v npm &>/dev/null; then || missing_other+=("npm install -g markdownlint-cli2") else if ! command -v markdownlint-cli2 &>/dev/null; then - echo " FEHLT markdownlint-cli2 (Node.js nicht vorhanden)" - missing_other+=("curl -fsSL https://fnm.vercel.app/install | bash" - "fnm install --lts" + echo " FEHLT markdownlint-cli2 (npm nicht vorhanden)" + if ! command -v fnm &>/dev/null; then + missing_other+=("curl -fsSL https://fnm.vercel.app/install | bash") + fi + missing_other+=("fnm install --lts" "npm install -g markdownlint-cli2") else echo " OK markdownlint-cli2 ($(markdownlint-cli2 --version 2>/dev/null | head -1 || true))"