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