test
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
name: VirtualHere Client
|
name: VirtualHere Client
|
||||||
version: "0.1.331"
|
version: "0.1.332"
|
||||||
slug: vhclient
|
slug: vhclient
|
||||||
description: VirtualHere Client
|
description: VirtualHere Client
|
||||||
arch:
|
arch:
|
||||||
|
|||||||
@@ -3,24 +3,4 @@
|
|||||||
file="/config/vhclient.ini"
|
file="/config/vhclient.ini"
|
||||||
touch $file
|
touch $file
|
||||||
|
|
||||||
editini() {
|
awk -f vh_editini.awk -v section=$1 -v key=$2 -v value=$3 $file
|
||||||
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
|
|
||||||
|
|
||||||
|
|||||||
Executable
+13
@@ -0,0 +1,13 @@
|
|||||||
|
#!/usr/bin/awk -f
|
||||||
|
|
||||||
|
BEGIN {
|
||||||
|
found_section = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
0$ ~ "^\[" $section {
|
||||||
|
found_section = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
END {
|
||||||
|
print "Found section: $found_section";
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user