diff --git a/tools/anvil-update-states b/tools/anvil-update-states index 0652ec2e..21860866 100755 --- a/tools/anvil-update-states +++ b/tools/anvil-update-states @@ -7,6 +7,9 @@ use strict; use warnings; 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 $running_directory = ($0 =~ /^(.*?)\/$THIS_FILE$/)[0]; if (($running_directory =~ /^\./) && ($ENV{PWD})) @@ -30,10 +33,6 @@ if (not $connections) $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); exit(0);