mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
grr, awk oddities
This commit is contained in:
parent
c7fcf1222c
commit
3c6ce823c3
4
inxi
4
inxi
|
@ -6074,8 +6074,8 @@ get_repo_data()
|
||||||
sub( /(mirrorlist|baseurl)[[:space:]]*=[[:space:]]*/, "", $1 ) # strip out the field starter
|
sub( /(mirrorlist|baseurl)[[:space:]]*=[[:space:]]*/, "", $1 ) # strip out the field starter
|
||||||
urlData = $1
|
urlData = $1
|
||||||
}
|
}
|
||||||
# note: either it is simple enabled, or it is enabled = 1. enabled = 0 means disabled
|
# note: enabled = 1. enabled = 0 means disabled
|
||||||
/^enabled=/ {
|
/^enabled[[:space:]]*=/ {
|
||||||
enabledStatus = $1
|
enabledStatus = $1
|
||||||
}
|
}
|
||||||
# print out the line if all 3 values are found, otherwise if a new
|
# print out the line if all 3 values are found, otherwise if a new
|
||||||
|
|
Loading…
Reference in a new issue