mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
bug fix
This commit is contained in:
parent
85c4073d80
commit
c4be977f5c
4
inxi
4
inxi
|
@ -9487,11 +9487,11 @@ print_raid_data()
|
|||
fi
|
||||
# NOTE: for bsd zfs, states are: ONLINE,DEGRADED,OFFLINE (at least)
|
||||
if [[ -n $( grep -Ei '(F|DEGRADED)' <<< $component ) ]];then
|
||||
component=$( sed -e 's/(F)//' -e 's/F//' -e 's/DEGRADED//i' <<< $component )
|
||||
component=$( sed -e 's/(F)//' -e 's/F//' -e 's/DEGRADED//' <<< $component )
|
||||
failed="$failed $component"
|
||||
component=''
|
||||
elif [[ -n $( grep -Ei '(S|OFFLINE)' <<< $component ) ]];then
|
||||
component=$( sed -e 's/(S)//' -e 's/S//' -e 's/OFFLINE//i' <<< $component )
|
||||
component=$( sed -e 's/(S)//' -e 's/S//' -e 's/OFFLINE//' <<< $component )
|
||||
spare="$spare $component"
|
||||
component=''
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue