reset variable in a loop to avoid error

This commit is contained in:
inxi-svn 2010-09-16 21:19:50 +00:00
parent 6750924de4
commit 8deff8d7f0

1
inxi
View file

@ -3148,6 +3148,7 @@ get_partition_data()
IFS="," IFS=","
a_partition_working=( ${A_PARTITION_DATA[i]} ) a_partition_working=( ${A_PARTITION_DATA[i]} )
IFS="$ORIGINAL_IFS" IFS="$ORIGINAL_IFS"
dev_item='' # reset each loop
# note: for swap this will already be set # note: for swap this will already be set
if [[ -n $( grep -E '(by-uuid|by-label)' <<< ${a_partition_working[6]} ) ]];then if [[ -n $( grep -E '(by-uuid|by-label)' <<< ${a_partition_working[6]} ) ]];then
if [[ -n $DEV_DISK_UUID ]];then if [[ -n $DEV_DISK_UUID ]];then