manus-skills/.kortix/opencode/skills/coding/dependency-updater/scripts/check-tool.sh
zhukang 1c7abd81d1 All 310 Manus skill-hub community skills as a Kortix marketplace registry
- 310 registry:skill items, 1528 files, 7 categories (hub tags)
- registry.json generated by @kortix/registry buildRegistry
- nested SKILL.md in sn-da-* renamed SUBSKILL.md (no phantom skills)
- provenance + licenses: SOURCES.md
2026-09-15 13:37:20 +08:00

23 lines
520 B
Bash

#!/bin/bash
# Check if a tool is installed and provide installation instructions if not
TOOL_NAME="$1"
INSTALL_CMD="$2"
if [ -z "$TOOL_NAME" ]; then
echo "Usage: check-tool.sh <tool-name> [install-command]"
exit 1
fi
if command -v "$TOOL_NAME" &> /dev/null; then
echo "OK: $TOOL_NAME is installed"
$TOOL_NAME --version 2>/dev/null || true
exit 0
else
echo "MISSING: $TOOL_NAME is not installed"
if [ -n "$INSTALL_CMD" ]; then
echo "Install with: $INSTALL_CMD"
fi
exit 1
fi