Correction création variable MODEL

This commit is contained in:
John Doe 2021-01-30 16:27:30 +01:00
parent 064111ebd2
commit 9e47f7057d
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ do
done
ARRAY_TEMPS+=$DUREE_TEST
/usr/sbin/smartctl -t long "$i" > /dev/null 2>&1
MODEL=($(/usr/sbin/smartctl -i /dev/sda | grep "Device Model:" | sed "s/Device Model: //g"))
MODEL=($(/usr/sbin/smartctl -i $i | grep "Device Model:" | sed "s/Device Model: //g"))
echo "Le selftest pour le disque ${MODEL[@]} prendra $DUREE_TEST minutes."
done