From 4e3e14dc30bffe4926ddf2e434573c8319f64512 Mon Sep 17 00:00:00 2001 From: levasseur Date: Mon, 4 Oct 2021 12:02:03 +0200 Subject: [PATCH] prnt: HEAD var renamed head and made local --- lib/display.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/display.sh b/lib/display.sh index 96f74f3..b7a8a88 100644 --- a/lib/display.sh +++ b/lib/display.sh @@ -93,23 +93,23 @@ export On_IWhite='\e[0;107m' prnt() { case $1 in "I") - HEADS="[ ${IGreen}info${DEFAULTFG} ]" + local heads="[ ${IGreen}info${DEFAULTFG} ]" shift ## ;; "W") - HEADS="[${IYellow}Attention${DEFAULTFG}]" + local heads="[${IYellow}Attention${DEFAULTFG}]" shift ;; "E") - HEADS="[ ${IRed}ERREUR${DEFAULTFG} ]" + local heads="[ ${IRed}ERREUR${DEFAULTFG} ]" shift ;; "m") - HEADS=" " + local heads=" " shift ;; esac - echo -e "${IWhite}$(date $DATEFORMAT)${DEFAULTFG} ${HEADS} $@" + echo -e "${IWhite}$(date $DATEFORMAT)${DEFAULTFG} ${heads} $@" } export -f prnt