mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 15:10:19 +00:00
Meta: Print failed pre-commit steps in bold
This makes them easier to find, especially for colorblind people.
This commit is contained in:
parent
db28ed8f51
commit
db0f019a70
1 changed files with 5 additions and 5 deletions
|
@ -5,7 +5,7 @@ set -e
|
|||
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
||||
cd "${script_path}/.." || exit 1
|
||||
|
||||
RED='\033[0;31m'
|
||||
BOLD_RED='\033[0;1;31m'
|
||||
GREEN='\033[0;32m'
|
||||
NC='\033[0m' # No Color
|
||||
|
||||
|
@ -27,7 +27,7 @@ for cmd in \
|
|||
if "${cmd}" "$@"; then
|
||||
echo -e "[${GREEN}OK${NC}]: ${cmd}"
|
||||
else
|
||||
echo -e "[${RED}FAIL${NC}]: ${cmd}"
|
||||
echo -e "[${BOLD_RED}FAIL${NC}]: ${cmd}"
|
||||
((FAILURES+=1))
|
||||
fi
|
||||
done
|
||||
|
@ -36,7 +36,7 @@ if [ -x ./Build/lagom/bin/IPCMagicLinter ]; then
|
|||
if { git ls-files '*.ipc' | xargs ./Build/lagom/bin/IPCMagicLinter; }; then
|
||||
echo -e "[${GREEN}OK${NC}]: IPCMagicLinter (in Meta/lint-ci.sh)"
|
||||
else
|
||||
echo -e "[${RED}FAIL${NC}]: IPCMagicLinter (in Meta/lint-ci.sh)"
|
||||
echo -e "[${BOLD_RED}FAIL${NC}]: IPCMagicLinter (in Meta/lint-ci.sh)"
|
||||
((FAILURES+=1))
|
||||
fi
|
||||
else
|
||||
|
@ -46,14 +46,14 @@ fi
|
|||
if Meta/lint-clang-format.sh --overwrite-inplace "$@" && git diff --exit-code -- ':*.cpp' ':*.h' ':*.mm'; then
|
||||
echo -e "[${GREEN}OK${NC}]: Meta/lint-clang-format.sh"
|
||||
else
|
||||
echo -e "[${RED}FAIL${NC}]: Meta/lint-clang-format.sh"
|
||||
echo -e "[${BOLD_RED}FAIL${NC}]: Meta/lint-clang-format.sh"
|
||||
((FAILURES+=1))
|
||||
fi
|
||||
|
||||
if Meta/lint-swift.sh "$@" && git diff --exit-code -- ':*.swift'; then
|
||||
echo -e "[${GREEN}OK${NC}]: Meta/lint-swift.sh"
|
||||
else
|
||||
echo -e "[${RED}FAIL${NC}]: Meta/lint-swift.sh"
|
||||
echo -e "[${BOLD_RED}FAIL${NC}]: Meta/lint-swift.sh"
|
||||
((FAILURES+=1))
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue