prnt: HEAD var renamed head and made local

This commit is contained in:
levasseur
2021-10-04 12:02:03 +02:00
parent cc04f61e14
commit 4e3e14dc30

View File

@@ -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