From 8e5e5b07d3f31a35a28f3f17cd1cd383bcec8673 Mon Sep 17 00:00:00 2001 From: Digimer Date: Wed, 1 Nov 2017 00:33:41 -0400 Subject: [PATCH] * Moved the buffer disable up the script. Signed-off-by: Digimer --- tools/anvil-update-states | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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);