From 52ab0a1126d6e678dd9ab00c1d43f7bf718775da Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Tue, 16 Jan 2024 05:16:44 +0000 Subject: [PATCH] feat: Updated scripts/githooks/pre-commit.sh --- scripts/githooks/pre-commit.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/githooks/pre-commit.sh b/scripts/githooks/pre-commit.sh index 86f17079..c643f275 100644 --- a/scripts/githooks/pre-commit.sh +++ b/scripts/githooks/pre-commit.sh @@ -46,15 +46,15 @@ RED="\e[31m" ENDCOLOR="\e[0m" printMessage() { - printf "${YELLOW}openim : $1${ENDCOLOR}\n" + printf "${YELLOW}openim : Error - $1${ENDCOLOR}\n" } printSuccess() { - printf "${GREEN}openim : $1${ENDCOLOR}\n" + printf "${GREEN}openim : Success - $1${ENDCOLOR}\n" } printError() { - printf "${RED}openim : $1${ENDCOLOR}\n" + printf "${RED}openim : Failure - $1${ENDCOLOR}\n" } printMessage "Running local openim pre-commit hook." @@ -73,9 +73,9 @@ function file_too_large(){ filesize=$(( $1 \/ 2**20 ))\ncat <