Files
heartwood/scripts/just/verify-tool.sh
T
Lorenz Leutgeb c7d71df4ab scripts, build, just: POSIX Compliance
Enforce POSIX shell syntax with ShellCheck using `--shell sh`.
2026-10-30 12:45:40 +01:00

12 lines
274 B
Bash
Executable File

#! /usr/bin/env sh
set -e
TOOL=$1
PKG_NAME=$2
if ! command -v "$TOOL" >/dev/null 2>&1; then
PKG="${PKG_NAME:-$TOOL}"
echo "${ERROR}Missing required tool: ${TOOL}${NORMAL}"
echo "${HINT}Use your systems package manager to install '$PKG'.${NORMAL}"
exit 1
fi