add arrays
This commit is contained in:
parent
cb5e31fe00
commit
b7ccacec3d
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user