Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/core/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ check_required_tools() {
local config_file="$1"
local missing_tools=()

while IFS= read -r tool; do
# Get required tools and check each one
for tool in $(yq eval '.tools.required[]' "$config_file"); do
if ! command_exists "$tool"; then
missing_tools+=("$tool")
fi
done < <(yq eval '.tools.required[]' "$config_file")
done

if [ ${#missing_tools[@]} -ne 0 ]; then
echo -e "${RED}Missing required tools:${NC}"
Expand Down