mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-03 12:18:00 +00:00
l3_vid_group: perl use statements do not work inside conditionals
This commit is contained in:
@@ -19,7 +19,7 @@ $| = 1;
|
|||||||
# This is before run-time, so cannot condition this with normal 'if' logic.
|
# This is before run-time, so cannot condition this with normal 'if' logic.
|
||||||
use lib '/home/lanforge/scripts';
|
use lib '/home/lanforge/scripts';
|
||||||
use lib "./";
|
use lib "./";
|
||||||
|
use Data::Dumper;
|
||||||
use LANforge::Endpoint;
|
use LANforge::Endpoint;
|
||||||
use LANforge::Port;
|
use LANforge::Port;
|
||||||
use LANforge::Utils;
|
use LANforge::Utils;
|
||||||
@@ -124,12 +124,7 @@ if ($show_help) {
|
|||||||
exit 0;
|
exit 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (defined $ENV{DEBUG}) {
|
|
||||||
use Data::Dumper;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($::debug) {
|
if ($::debug) {
|
||||||
use Data::Dumper;
|
|
||||||
$ENV{DEBUG} = 1 if (!(defined $ENV{DEBUG}));
|
$ENV{DEBUG} = 1 if (!(defined $ENV{DEBUG}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user