Skip to content

Commit

Permalink
[READY] Fix syntax in switch_config_loader (#836)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarcasticadmin authored Feb 6, 2025
2 parents 328ec9b + 2cf9818 commit 4cfd988
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions switch-configuration/config/scripts/switch_config_loader
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ $opt_l = 1 if ($opt_t);

die "Error: -b and -k are incompatible.\n" if ($opt_b && $opt_k);
die "Error: -l and -t are incompatible.\n" if ($opt_t && $opt_l);
warn "Warning: -x only meaningful if used with -b.\n" if ($opt_x) unless($opt_b);
if ($opt_x)
{
warn "Warning: -x only meaningful if used with -b.\n" unless($opt_b);
}

my @list = @ARGV;

Expand Down Expand Up @@ -227,8 +230,8 @@ unless($opt_b)
}

# Power off switches if in bulk mode.
$Loader->{'power_off'} = 1;
$Loader->{'power_off'} = 0 if ($opt_x);
$LOADER->{'power_off'} = 1;
$LOADER->{'power_off'} = 0 if ($opt_x);

while (1)
{
Expand Down

0 comments on commit 4cfd988

Please sign in to comment.