mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +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
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue