grr, awk oddities

This commit is contained in:
inxi-svn 2012-12-22 03:19:46 +00:00
parent c7fcf1222c
commit 3c6ce823c3

4
inxi
View file

@ -6074,8 +6074,8 @@ get_repo_data()
sub( /(mirrorlist|baseurl)[[:space:]]*=[[:space:]]*/, "", $1 ) # strip out the field starter
urlData = $1
}
# note: either it is simple enabled, or it is enabled = 1. enabled = 0 means disabled
/^enabled=/ {
# note: enabled = 1. enabled = 0 means disabled
/^enabled[[:space:]]*=/ {
enabledStatus = $1
}
# print out the line if all 3 values are found, otherwise if a new