plugin('checkall');
foreach (glob("/tmp/plugins/*.plg", GLOB_NOSORT) as $file) {
$name = basename($file, '.plg');
$old = plugin('version', "/var/log/plugins/$name.plg");
$new = plugin('version', $file);
// silently suppress bad download of PLG file
if (strcmp($new, $old) > 0) {
exec("$notify -e ".escapeshellarg("Plugin - $name [$new]")." -s ".escapeshellarg("Notice [$server] - Version update $new")." -d ".escapeshellarg("A new version of $name is available")." -i ".escapeshellarg("normal $output")." -x");
}
}
plugincheck (not oscheck) checks every .plg in /tmp/plugins. It doesn't care if its actually installed or not, and unRAIDServer-.plg is not installed
It then compares the new version (in this case, 6.5.1rc-1 to a non existent old version). Since the version string is > null the notification is sent out.
And you can also see this in any of dlandon's screenshots as they all state A new version of unRAIDServer- is available.
I think my procedure is more akin to what a user would actually do. Check for next, then go on and do nothing or start switching tabs etc. There is no need to switch the branch back to "normal". And I did this on both 6.5.0 and 6.5.1rc-2