diff --git a/vhclient/config.yaml b/vhclient/config.yaml index 0cbebc5..221f7ef 100644 --- a/vhclient/config.yaml +++ b/vhclient/config.yaml @@ -1,5 +1,5 @@ name: VirtualHere Client -version: "0.1.334" +version: "0.1.335" 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 19d71f0..204d573 100755 --- a/vhclient/rootfs/usr/bin/vh_editini.awk +++ b/vhclient/rootfs/usr/bin/vh_editini.awk @@ -3,6 +3,7 @@ BEGIN { found_section = 0; found_key = 0; + edited_row = 0; } $0 ~ "^\\[" section "\\]" { @@ -12,6 +13,7 @@ $0 ~ "^\\[" section "\\]" { $0 ~ "^" key "=" { if (found_section) { found_key = 1; + edited_row = 1; if (value) { print key "=" value; } @@ -21,6 +23,7 @@ $0 ~ "^" key "=" { $0 ~ "^\\[" { if (found_section && !found_key) { found_key = 1; + edited_row = 1; if (value) { print key "=" value; } @@ -28,7 +31,7 @@ $0 ~ "^\\[" { } /.*/ { - if(!found_key) { + if(!edited_row) { print $0; } }