Publish curated ITWorx_MCP_Hub source from 3237e4d8aec312d63d13b4e80664422a7520b5f9
This commit is contained in:
1 parent
867a1b5e3b
commit
fdc6d4a0a5
13 files changed
+536
-68
No files matched your search
@@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
# Query the authoritative installed database, never apk-info's verbose display fields.
|
||||
version=$(awk -v RS='' '
|
||||
{
|
||||
name_count = 0; version_count = 0; selected = 0; package_version = ""
|
||||
count = split($0, lines, "\n")
|
||||
for (i = 1; i <= count; i++) {
|
||||
if (substr(lines[i], 1, 2) == "P:") {
|
||||
name_count++
|
||||
if (lines[i] == "P:pcre2") selected = 1
|
||||
}
|
||||
if (substr(lines[i], 1, 2) == "V:") {
|
||||
version_count++
|
||||
package_version = substr(lines[i], 3)
|
||||
}
|
||||
}
|
||||
if (selected) {
|
||||
matches++
|
||||
if (name_count != 1 || version_count != 1) invalid = 1
|
||||
selected_version = package_version
|
||||
}
|
||||
}
|
||||
END {
|
||||
if (matches != 1 || invalid || selected_version != "10.49-r0") exit 1
|
||||
print "10.49-r0"
|
||||
}
|
||||
' /lib/apk/db/installed)
|
||||
test "$version" = '10.49-r0'
|
||||
clamd --version | grep -Eq '^ClamAV 1\.4\.6(/|$)'
|
||||
Reference in new issue
Block a user