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() { prnt() {
case $1 in case $1 in
"I") "I")
HEADS="[ ${IGreen}info${DEFAULTFG} ]" local heads="[ ${IGreen}info${DEFAULTFG} ]"
shift ## shift ##
;; ;;
"W") "W")
HEADS="[${IYellow}Attention${DEFAULTFG}]" local heads="[${IYellow}Attention${DEFAULTFG}]"
shift shift
;; ;;
"E") "E")
HEADS="[ ${IRed}ERREUR${DEFAULTFG} ]" local heads="[ ${IRed}ERREUR${DEFAULTFG} ]"
shift shift
;; ;;
"m") "m")
HEADS=" " local heads=" "
shift shift
;; ;;
esac esac
echo -e "${IWhite}$(date $DATEFORMAT)${DEFAULTFG} ${HEADS} $@" echo -e "${IWhite}$(date $DATEFORMAT)${DEFAULTFG} ${heads} $@"
} }
export -f prnt export -f prnt