feat(checkver): Present script property (#3900)

This commit is contained in:
Jakub Čábera
2020-04-20 15:29:10 +02:00
committed by GitHub
parent 50df0c52c4
commit 398ccea2ae
2 changed files with 8 additions and 1 deletions
+4 -1
View File
@@ -196,8 +196,11 @@ while ($in_progress -gt 0) {
$expected_ver = $json.version
$ver = ''
$err = $ev.SourceEventArgs.Error
$page = $ev.SourceEventArgs.Result
$err = $ev.SourceEventArgs.Error
if ($json.checkver.script) {
$page = $json.checkver.script -join "`r`n" | Invoke-Expression
}
if ($err) {
next "$($err.message)`r`nURL $url is not valid"
+4
View File
@@ -260,6 +260,10 @@
},
"useragent": {
"type": "string"
},
"script": {
"$ref": "#/definitions/stringOrArrayOfStrings",
"description": "Custom PowerShell script to retrieve application version using more complex approach."
}
},
"type": "object"