mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
Fixed small arch bug
This commit is contained in:
parent
4470d2f1f9
commit
575c743001
2
inxi
2
inxi
|
@ -2404,7 +2404,7 @@ get_partition_data_advanced()
|
|||
# if this works, great, otherwise, just set this to null values
|
||||
partTemp="'$( readlink /dev/root 2>/dev/null )'"
|
||||
if ( partTemp != "" ) {
|
||||
if ( partTemp ~ /^[hs]d[a-z][0-9]+$/ ) {
|
||||
if ( partTemp ~ /[hs]d[a-z][0-9]/ ) {
|
||||
partition=gensub( /^(\/dev\/)(.+)$/, "\\2", 1, partTemp )
|
||||
}
|
||||
else if ( partTemp ~ /by-uuid\/[a-z0-9]+-[a-z0-9]+-[a-z0-9]+/ ) {
|
||||
|
|
Loading…
Reference in a new issue