mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-06 03:59:31 +01:00
pbot-vm: ignore -health and -revert used simultaneously to prevent double-revert
This commit is contained in:
parent
3b36894403
commit
e25bde159f
@ -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'}}) {
|
||||
|
@ -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",
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user