test
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
name: VirtualHere Client
|
||||
version: "0.1.330"
|
||||
version: "0.1.331"
|
||||
slug: vhclient
|
||||
description: VirtualHere Client
|
||||
arch:
|
||||
|
||||
@@ -1,18 +1,26 @@
|
||||
#!/usr/bin/awk -f
|
||||
#!/command/with-contenv bashio
|
||||
|
||||
BEGIN {
|
||||
section = $2;
|
||||
key = $3;
|
||||
value = $4;
|
||||
found_section = false;
|
||||
file="/config/vhclient.ini"
|
||||
touch $file
|
||||
|
||||
editini() {
|
||||
awk -f
|
||||
BEGIN {
|
||||
section = $1;
|
||||
key = $2;
|
||||
value = $3;
|
||||
found_section = false;
|
||||
}
|
||||
|
||||
/^\[$section\]/ {
|
||||
found_section = true;
|
||||
}
|
||||
|
||||
END {
|
||||
print "Found section: $found_section";
|
||||
}
|
||||
$file
|
||||
}
|
||||
|
||||
/^\[$section\]/ {
|
||||
found_section = true;
|
||||
}
|
||||
editini $1 $2 $3
|
||||
|
||||
END {
|
||||
print "Found section: $found_section";
|
||||
}
|
||||
|
||||
/config/vhclient.ini
|
||||
|
||||
Reference in New Issue
Block a user