add arrays

This commit is contained in:
Tenzing Kandang 2025-11-28 09:50:07 +01:00
parent 9a463c80c7
commit cb5e31fe00

View File

@ -37,6 +37,17 @@ apt list --installed 2> >(tee -a $ERROR_LOG) > apt-installed.cmd \
&& echo "[OK]: Fichier apt-installed.cmd généré" |tee -a $SUCCESS_LOG \ && echo "[OK]: Fichier apt-installed.cmd généré" |tee -a $SUCCESS_LOG \
|| echo "[ECHEC]: Erreur à la génération de apt-installed.cmd" |tee -a $ERROR_LOG || echo "[ECHEC]: Erreur à la génération de apt-installed.cmd" |tee -a $ERROR_LOG
--------------------------------------
declare -a DEVICES
mapfile -t DEVICES < <(lsblk -dn -o NAME |grep -v loop)
declare -A FILES
FILES=(
"sources_list.file" "/etc/apt/sources.list*"
"passwd.file" "/etc/passwd"
"group.file" "/etc/group"
)
#cat /etc/passwd > $DIR/passwd.file #cat /etc/passwd > $DIR/passwd.file
#cat /etc/group > $DIR/group.file #cat /etc/group > $DIR/group.file