fix: bootstrap.sh erkennt bereits installiertes fnm
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 <noreply@anthropic.com>
This commit is contained in:
+5
-3
@@ -82,9 +82,11 @@ if command -v npm &>/dev/null; then
|
|||||||
|| missing_other+=("npm install -g markdownlint-cli2")
|
|| missing_other+=("npm install -g markdownlint-cli2")
|
||||||
else
|
else
|
||||||
if ! command -v markdownlint-cli2 &>/dev/null; then
|
if ! command -v markdownlint-cli2 &>/dev/null; then
|
||||||
echo " FEHLT markdownlint-cli2 (Node.js nicht vorhanden)"
|
echo " FEHLT markdownlint-cli2 (npm nicht vorhanden)"
|
||||||
missing_other+=("curl -fsSL https://fnm.vercel.app/install | bash"
|
if ! command -v fnm &>/dev/null; then
|
||||||
"fnm install --lts"
|
missing_other+=("curl -fsSL https://fnm.vercel.app/install | bash")
|
||||||
|
fi
|
||||||
|
missing_other+=("fnm install --lts"
|
||||||
"npm install -g markdownlint-cli2")
|
"npm install -g markdownlint-cli2")
|
||||||
else
|
else
|
||||||
echo " OK markdownlint-cli2 ($(markdownlint-cli2 --version 2>/dev/null | head -1 || true))"
|
echo " OK markdownlint-cli2 ($(markdownlint-cli2 --version 2>/dev/null | head -1 || true))"
|
||||||
|
|||||||
Reference in New Issue
Block a user