prnt: HEAD var renamed head and made local
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user