mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
didn't workO
This commit is contained in:
parent
812417b90a
commit
8a9c3388a9
4
inxi
4
inxi
|
@ -2445,7 +2445,7 @@ get_partition_data_advanced()
|
||||||
partTemp = ""
|
partTemp = ""
|
||||||
}
|
}
|
||||||
# trying to handle space in name
|
# trying to handle space in name
|
||||||
gsub( /\\040/, " ", $0 )
|
# gsub( /\\040/, " ", $0 )
|
||||||
/[ \t]'$mount_point'[ \t]/ && $1 != "rootfs" {
|
/[ \t]'$mount_point'[ \t]/ && $1 != "rootfs" {
|
||||||
# initialize the variables
|
# initialize the variables
|
||||||
label = ""
|
label = ""
|
||||||
|
@ -2515,7 +2515,7 @@ get_partition_data_advanced()
|
||||||
elif [[ -n $dev_disk_label ]] && [[ -z $dev_item && -n $dev_label ]];then
|
elif [[ -n $dev_disk_label ]] && [[ -z $dev_item && -n $dev_label ]];then
|
||||||
dev_item=$( echo "$dev_disk_label" | gawk '
|
dev_item=$( echo "$dev_disk_label" | gawk '
|
||||||
# first we need to change space x20 in by-label back to a real space
|
# first we need to change space x20 in by-label back to a real space
|
||||||
gsub( /x20/, " ", $0 )
|
#gsub( /x20/, " ", $0 )
|
||||||
# then we can see if the string is there
|
# then we can see if the string is there
|
||||||
/'$dev_label'/ {
|
/'$dev_label'/ {
|
||||||
item=gensub( /..\/..\/(.+)/, "\\1", 1, $NF )
|
item=gensub( /..\/..\/(.+)/, "\\1", 1, $NF )
|
||||||
|
|
Loading…
Reference in a new issue