Prevent set -e from aborting on brew/npm install failures

Add || fallback for brew install --cask, brew install node, and
npm install commands so the script continues when individual
packages fail (e.g. SHA mismatch in brew cache).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
csbae-macbook
2026-03-04 14:05:14 +09:00
co-authored by Claude Opus 4.6
parent 51cde642d9
commit 7269cb8163
+3 -3
View File
@@ -141,7 +141,7 @@ for app in "${APPS[@]}"; do
echo "$app 이미 설치됨"
else
echo "📦 $app 설치 중..."
brew install --cask "$app"
brew install --cask "$app" || echo "⚠️ $app 설치 실패. 나중에 수동으로 설치해주세요."
fi
done
@@ -156,7 +156,7 @@ echo "🤖 Node.js & Claude Code 설치 중..."
if brew list node &> /dev/null; then
echo "✅ Node.js 이미 설치됨"
else
brew install node
brew install node || { echo "⚠️ Node.js 설치 실패"; }
echo "✅ Node.js 설치 완료"
fi
@@ -164,7 +164,7 @@ fi
if command -v claude &> /dev/null; then
echo "✅ Claude Code CLI 이미 설치됨"
else
npm install -g @anthropic-ai/claude-code
npm install -g @anthropic-ai/claude-code || { echo "⚠️ Claude Code CLI 설치 실패. Node.js 설치를 확인해주세요."; }
echo "✅ Claude Code CLI 설치 완료"
fi