Skip to content

Commit

Permalink
Broader output
Browse files Browse the repository at this point in the history
  • Loading branch information
matteocorti committed Oct 14, 2024
1 parent c422dd4 commit cadc0bd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions utils/check_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,31 @@ FAILED=

check_required() {

printf "Checking %20s:" "$1"
printf "Checking %35s:" "$1"

PROG=$(command -v "$1" 2>/dev/null)

if [ -z "${PROG}" ]; then
ERROR="$1 not found"
printf " [${RED}error${NC}: %-20s]\n" "${ERROR}"
printf " [${RED}error${NC}: %-35s]\n" "${ERROR}"
FAILED=1
else
printf " [${GREEN}OK${NC}: %-20s]\n" "${PROG}"
printf " [${GREEN}OK${NC}: %-35s]\n" "${PROG}"
fi

}

check_optional() {

printf "Checking %20s:" "$1"
printf "Checking %35s:" "$1"

PROG=$(command -v "$1" 2>/dev/null)

if [ -z "${PROG}" ]; then
ERROR="$1 not found"
printf " [${YELLOW}error${NC}: %-20s]\n" "${ERROR}"
printf " [${YELLOW}error${NC}: %-35s]\n" "${ERROR}"
else
printf " [${GREEN}OK${NC}: %-20s]\n" "${PROG}"
printf " [${GREEN}OK${NC}: %-35s]\n" "${PROG}"
fi

}
Expand Down

0 comments on commit cadc0bd

Please sign in to comment.