mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 19:22:40 +01:00
vm-exec: remove redundant PBOT_VM_PORT assignment
This commit is contained in:
parent
f460088331
commit
fd93ecd6f9
@ -47,11 +47,6 @@ $args->{channel} //= 'vm';
|
|||||||
$args->{lang} //= 'c11';
|
$args->{lang} //= 'c11';
|
||||||
$args->{'vm-port'} //= $ENV{PBOT_VM_PORT} // SERIAL_PORT;
|
$args->{'vm-port'} //= $ENV{PBOT_VM_PORT} // SERIAL_PORT;
|
||||||
|
|
||||||
# override vm-port with environment variable
|
|
||||||
if ($ENV{PBOT_VM_PORT}) {
|
|
||||||
$args->{'vm-port'} = $ENV{PBOT_VM_PORT};
|
|
||||||
}
|
|
||||||
|
|
||||||
my $language = lc $args->{lang};
|
my $language = lc $args->{lang};
|
||||||
|
|
||||||
eval {
|
eval {
|
||||||
|
Loading…
Reference in New Issue
Block a user