add arrays

This commit is contained in:
Tenzing Kandang 2025-11-28 10:07:19 +01:00
parent cb5e31fe00
commit b7ccacec3d

View File

@ -33,13 +33,13 @@ Récupération de la liste des paquets installés
------------------------------------- -------------------------------------
EOF3 EOF3
apt list --installed 2> >(tee -a $ERROR_LOG) > apt-installed.cmd \ apt list --installed 2> >(tee -a $ERROR_LOG) >$DIR/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 declare -a DEVICES
mapfile -t DEVICES < <(lsblk -dn -o NAME |grep -v loop) mapfile -t DEVICES < <(lsblk -dn -o NAME |grep -v loop)
declare -A FILES declare -A FILES