diff --git a/vhclient/config.yaml b/vhclient/config.yaml index 221f7ef..9ebcc2c 100644 --- a/vhclient/config.yaml +++ b/vhclient/config.yaml @@ -1,5 +1,5 @@ name: VirtualHere Client -version: "0.1.335" +version: "0.1.336" slug: vhclient description: VirtualHere Client arch: diff --git a/vhclient/rootfs/usr/bin/vh_editini.awk b/vhclient/rootfs/usr/bin/vh_editini.awk index 204d573..33deff9 100755 --- a/vhclient/rootfs/usr/bin/vh_editini.awk +++ b/vhclient/rootfs/usr/bin/vh_editini.awk @@ -6,10 +6,6 @@ BEGIN { edited_row = 0; } -$0 ~ "^\\[" section "\\]" { - found_section = 1; -} - $0 ~ "^" key "=" { if (found_section) { found_key = 1; @@ -30,10 +26,15 @@ $0 ~ "^\\[" { } } +$0 ~ "^\\[" section "\\]" { + found_section = 1; +} + /.*/ { if(!edited_row) { print $0; } + edited_row = 0; } END {