|
|
@ -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); |
|
|
|