2024-07-12 22:56:04 +00:00
|
|
|
#!/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() {
|
2024-07-30 03:36:45 +00:00
|
|
|
check "$(command -v $1 >/dev/null 2>&1)" "$2"
|
2024-07-12 22:56:04 +00:00
|
|
|
}
|