pbot-vm: ignore -health and -revert used simultaneously to prevent double-revert

This commit is contained in:
Pragmatic Software 2024-04-10 12:53:37 -07:00
parent 3b36894403
commit e25bde159f
No known key found for this signature in database
GPG Key ID: CC916B6E3C84ECCE
2 changed files with 6 additions and 1 deletions

View File

@ -263,6 +263,11 @@ sub main() {
configure_context($context, $config);
if ($context->{revert} && $context->{health}) {
print STDERR "-health and -revert cannot be used together; aborting.\n";
exit 0;
}
# instructed to revert machine
if ($context->{revert}) {
if (exists $config->{aliases}->{$context->{'vm-domain'}}) {

View File

@ -25,7 +25,7 @@ use PBot::Imports;
# These are set by the /misc/update_version script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 4741,
BUILD_REVISION => 4745,
BUILD_DATE => "2024-04-10",
};