File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22set -euo pipefail
33
4- # Function to check if a command exists
5- command_exists () {
6- command -v " $1 " > /dev/null 2>&1
7- }
8-
94# Install pipx if not already available
10- if ! command_exists pipx; then
5+ if ! command -v pipx > /dev/null 2>&1 ; then
116 echo " Installing pipx..."
127 brew install pipx
138 pipx ensurepath
@@ -108,12 +103,12 @@ kubectl-krew install ctx ns minio neat konfig cert-manager sniff
108103set -e PIP_BREAK_SYSTEM_PACKAGES
109104
110105# Volta
111- if ! command_exists volta; then
106+ if ! command -v volta > /dev/null 2>&1 ; then
112107 curl https://get.volta.sh | bash
113108fi
114109
115110# Claude CLI
116- if ! command_exists claude; then
111+ if ! command_exists claude > /dev/null 2>&1 ; then
117112 curl -fsSL claude.ai/install.sh | bash || true
118113fi
119114
You can’t perform that action at this time.
0 commit comments