Website/bin/just/check.sh
Snoweuph 3a2d031f82
Some checks failed
Quality Check / QS Backend (push) Successful in 20s
Quality Check / QS Frontend (push) Failing after 35s
Quality Check / QS Mixed (push) Successful in 37s
Use Symfony UX Twig
2024-07-21 14:00:05 +02:00

13 lines
314 B
Bash

#!/bin/bash
check() {
if $1; then
printf >&2 "${GREEN_FG}$2${BLUE_FG} is ${GREEN_FG}installed${BLUE_FG}.\n"
else
printf >&2 "${RED_FG}$2${YELLOW_FG} is ${RED_FG}not installed${YELLOW_FG}! \n"
error=1
fi
}
check_cmd() {
check "$(command -v $1 >/dev/null 2>&1)" "$2"
}