added file dependency check, switched back to english, smaller fix and improvements
This commit is contained in:
@@ -89,7 +89,7 @@ export On_IWhite='\e[0;107m'
|
||||
# ------------------------------------------------------------------------------
|
||||
# Display status with color and timestamp
|
||||
# (-n on first parameter to stay on the same line)
|
||||
# ($1 accepted values: I=info, W=warning, E=error, m=des espaces (allignement)
|
||||
# ($1 accepted values: I=info, W=warning, E=error, m=spaces (alignment)
|
||||
# no header if anything else)
|
||||
prnt()
|
||||
{
|
||||
@@ -101,19 +101,19 @@ prnt()
|
||||
fi
|
||||
case $1 in
|
||||
"I")
|
||||
local heads="[ ${IGreen}info${DEFAULTFG} ]"
|
||||
shift ##
|
||||
local heads="[ ${IGreen}info${DEFAULTFG} ]"
|
||||
shift
|
||||
;;
|
||||
"W")
|
||||
local heads="[${IYellow}Attention${DEFAULTFG}]"
|
||||
local heads="[${IYellow}Warning${DEFAULTFG}]"
|
||||
shift
|
||||
;;
|
||||
"E")
|
||||
local heads="[ ${IRed}ERREUR${DEFAULTFG} ]"
|
||||
local heads="[ ${IRed}ERROR${DEFAULTFG} ]"
|
||||
shift
|
||||
;;
|
||||
"m")
|
||||
local heads=" "
|
||||
local heads=" "
|
||||
shift
|
||||
;;
|
||||
esac
|
||||
@@ -134,7 +134,7 @@ dsleep()
|
||||
if [[ -n $2 ]]; then
|
||||
echo -n "$2"
|
||||
else
|
||||
echo -n "${i} "
|
||||
echo -n " ${i}"
|
||||
fi
|
||||
(( i=i-1 ))
|
||||
sleep 1
|
||||
|
||||
Reference in New Issue
Block a user