This commit is contained in:
Hans Karlinius
2024-12-02 21:45:44 +01:00
parent 51cfddec6b
commit 7e25ea88a9
3 changed files with 15 additions and 22 deletions

View File

@@ -1,5 +1,5 @@
name: VirtualHere Client
version: "0.1.331"
version: "0.1.332"
slug: vhclient
description: VirtualHere Client
arch:

View File

@@ -3,24 +3,4 @@
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
}
editini $1 $2 $3
awk -f vh_editini.awk -v section=$1 -v key=$2 -v value=$3 $file

View File

@@ -0,0 +1,13 @@
#!/usr/bin/awk -f
BEGIN {
found_section = false;
}
0$ ~ "^\[" $section {
found_section = true;
}
END {
print "Found section: $found_section";
}