implemented notify.patch from issue #26

thanks to Wim for contributing
This commit is contained in:
florian
2014-01-04 14:01:54 +00:00
parent 1cf0e0b373
commit 60644ea2bc
8 changed files with 43 additions and 3 deletions

View File

@@ -23,4 +23,17 @@ function verbose($msg, $loglevel=0) {
if($loglevel <= $verbose) echo $msg."\n";
}
// Notify script
//
function notifyScript($tool, $expectedVersion, $foundVersion, $path) {
if( getenv('NOTIFY_SCRIPT') != null ) {
$cmd = getenv('NOTIFY_SCRIPT') . " " .
escapeshellarg($tool) . " " .
escapeshellarg($expectedVersion) . " " .
escapeshellarg($foundVersion) . " " .
escapeshellarg($path);
exec($cmd);
}
}
?>