* Moved the buffer disable up the script.

Signed-off-by: Digimer <digimer@alteeve.ca>
main
Digimer 7 years ago
parent 9e4414613b
commit 8e5e5b07d3
  1. 7
      tools/anvil-update-states

@ -7,6 +7,9 @@ use strict;
use warnings; use warnings;
use Anvil::Tools; use Anvil::Tools;
# Turn off buffering so that the pinwheel will display while waiting for the SSH call(s) to complete.
$| = 1;
my $THIS_FILE = ($0 =~ /^.*\/(.*)$/)[0]; my $THIS_FILE = ($0 =~ /^.*\/(.*)$/)[0];
my $running_directory = ($0 =~ /^(.*?)\/$THIS_FILE$/)[0]; my $running_directory = ($0 =~ /^(.*?)\/$THIS_FILE$/)[0];
if (($running_directory =~ /^\./) && ($ENV{PWD})) if (($running_directory =~ /^\./) && ($ENV{PWD}))
@ -30,10 +33,6 @@ if (not $connections)
$anvil->nice_exit({exit_code => 2}); $anvil->nice_exit({exit_code => 2});
} }
# Turn off buffering so that the pinwheel will display while waiting for the SSH call(s) to complete.
$| = 1;
report_network($anvil); report_network($anvil);
exit(0); exit(0);

Loading…
Cancel
Save