few fix and typoes
This commit is contained in:
@@ -72,7 +72,11 @@ installfile()
|
|||||||
filelist="$filelist $arg"
|
filelist="$filelist $arg"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
for i in $filelist; do :; done
|
|
||||||
|
# Empty for just to obtain the target which is the last element of the list
|
||||||
|
for i in $filelist; do
|
||||||
|
:
|
||||||
|
done
|
||||||
if [[ ! $i == /* ]]; then
|
if [[ ! $i == /* ]]; then
|
||||||
prnt E "installfile(): Target must be on the root filesystem and fuul path must be provided."
|
prnt E "installfile(): Target must be on the root filesystem and fuul path must be provided."
|
||||||
die 13
|
die 13
|
||||||
@@ -84,6 +88,7 @@ installfile()
|
|||||||
prnt E "installfile(): Can't create target dirrectory!"
|
prnt E "installfile(): Can't create target dirrectory!"
|
||||||
die 12
|
die 12
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
prnt I "Copie des fichiers ${filelist}..."
|
prnt I "Copie des fichiers ${filelist}..."
|
||||||
cp -av $filelist
|
cp -av $filelist
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
|
|||||||
@@ -14,6 +14,12 @@
|
|||||||
# errors with immediate exit.
|
# errors with immediate exit.
|
||||||
read_commandline()
|
read_commandline()
|
||||||
{
|
{
|
||||||
|
syntax_error()
|
||||||
|
{
|
||||||
|
prnt E "Erreur d'analyse de la ligne de commande, vérifiez vos paramètres."
|
||||||
|
die 1
|
||||||
|
}
|
||||||
|
|
||||||
# Processing command line options
|
# Processing command line options
|
||||||
local want_module=false
|
local want_module=false
|
||||||
local want_logfile=false
|
local want_logfile=false
|
||||||
@@ -99,8 +105,7 @@ read_commandline()
|
|||||||
|
|
||||||
# If those var are true at that point, something is wrong
|
# If those var are true at that point, something is wrong
|
||||||
if [[ $want_logfile == true ]] || [[ $want_module == true ]]; then
|
if [[ $want_logfile == true ]] || [[ $want_module == true ]]; then
|
||||||
prnt E "Erreur de syntaxe dans la ligne de commande."
|
syntax_error
|
||||||
die 1
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
export -f read_commandline
|
export -f read_commandline
|
||||||
|
|||||||
@@ -20,20 +20,20 @@
|
|||||||
# Character table (ISO or UTF)
|
# Character table (ISO or UTF)
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
||||||
export VER_conf_locale^="0.1.0"
|
export VER_conf_locale="0.1.0"
|
||||||
|
|
||||||
conf_locale()
|
conf_locale()
|
||||||
{
|
{
|
||||||
local gen_fname=/etc/locale.gen
|
local gen_fname=/etc/locale.gen
|
||||||
backupdist $gen_fname
|
backupdist $gen_fname
|
||||||
|
|
||||||
# Adding locales not yet enabled
|
# Adding locales not yet enabled
|
||||||
for loc in $LOCALESET; do
|
for loc in $LOCALESET; do
|
||||||
prnt I "Activation de la locale ${loc}..."
|
prnt I "Activation de la locale ${loc}..."
|
||||||
sed -i "/^# $loc /s/^# //" $gen_fname
|
sed -i "/^# $loc /s/^# //" $gen_fname
|
||||||
done
|
done
|
||||||
unset loc
|
unset loc
|
||||||
|
|
||||||
# Removing locales not in the list
|
# Removing locales not in the list
|
||||||
while IFS= read -r line; do
|
while IFS= read -r line; do
|
||||||
if [[ ! $(echo $LOCALESET | grep $line) ]]; then
|
if [[ ! $(echo $LOCALESET | grep $line) ]]; then
|
||||||
@@ -41,7 +41,7 @@ conf_locale()
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
unset $gen_fname
|
unset $gen_fname
|
||||||
|
|
||||||
prnt I "Régénération du cache de locale..."
|
prnt I "Régénération du cache de locale..."
|
||||||
locale-gen
|
locale-gen
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user