Fixed small arch bug

This commit is contained in:
inxi-svn 2009-02-05 01:36:03 +00:00
parent 4470d2f1f9
commit 575c743001

2
inxi
View file

@ -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]+/ ) {