added file dependency check, switched back to english, smaller fix and improvements

This commit is contained in:
fatalerrors
2021-11-18 14:53:11 +01:00
parent 9fc9b96165
commit b71a0c2ee8
21 changed files with 360 additions and 173 deletions

View File

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