add arrays
This commit is contained in:
parent
9a463c80c7
commit
cb5e31fe00
11
grabber.sh
11
grabber.sh
@ -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 "[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/group > $DIR/group.file
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user