mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
reset variable in a loop to avoid error
This commit is contained in:
parent
6750924de4
commit
8deff8d7f0
1
inxi
1
inxi
|
@ -3148,6 +3148,7 @@ get_partition_data()
|
|||
IFS=","
|
||||
a_partition_working=( ${A_PARTITION_DATA[i]} )
|
||||
IFS="$ORIGINAL_IFS"
|
||||
dev_item='' # reset each loop
|
||||
# note: for swap this will already be set
|
||||
if [[ -n $( grep -E '(by-uuid|by-label)' <<< ${a_partition_working[6]} ) ]];then
|
||||
if [[ -n $DEV_DISK_UUID ]];then
|
||||
|
|
Loading…
Reference in a new issue