updated README.md, added to do list, fixed separator length, version info swith to english

This commit is contained in:
levasseur
2021-11-26 17:30:18 +01:00
parent 6db50b3d69
commit c978eb1ef8
4 changed files with 87 additions and 32 deletions

View File

@@ -130,7 +130,7 @@ separator()
{
echo -ne "$BYellow"
local i=0
for i in {1..79}; do
for i in {1..$(( $(tput cols) - 1 ))}; do
echo -n "-"
done
echo -e "$DEFAULTCOL"

View File

@@ -78,7 +78,7 @@ show_version()
{
echo -e "${BWhite}init.sh${DEFAULTCOL} version ${BGreen}$VERSION${DEFAULTCOL}"
echo ""
echo "Modules disponibles :"
echo "Available modules:"
local mod=
for mod in $MYPATH/modules/*.sh; do
@@ -96,7 +96,7 @@ show_version()
unset mod
if [[ $(id -u) -ne 0 ]]; then
echo -e "\n${BYellow}Attention :$DEFAULTCOL Ce script requiert les droits d'administration pour fonctionner."
echo -e "\n${BYellow}Warning:$DEFAULTCOL That script requires superuser rights to work."
fi
}
export -f show_version