removed LWP::Simple deps from syncoid as well

This commit is contained in:
Jim Salter 2015-03-01 19:39:13 -05:00
parent 9a029e0d3f
commit 2f4d8a6e5c
1 changed files with 1 additions and 17 deletions

18
syncoid
View File

@ -4,22 +4,18 @@
# from http://www.gnu.org/licenses/gpl-3.0.html on 2014-11-17. A copy should also be available in this
# project's Git repository at https://github.com/jimsalterjrs/sanoid/blob/master/LICENSE.
my $version = '1.0.10';
my $version = '1.0.13';
use strict;
use Data::Dumper;
use Time::Local;
use Sys::Hostname;
use LWP::Simple;
my %args = getargs(@ARGV);
if ($args{'version'}) {
print "Syncoid version: $version\n";
exit 0;
} elsif ($args{'monitor-version'}) {
monitor_version();
exit 0;
}
my $rawsourcefs = $args{'source'};
@ -169,18 +165,6 @@ exit;
##############################################################################
##############################################################################
sub monitor_version() {
my $trunkversion = get("https://raw.githubusercontent.com/jimsalterjrs/sanoid/master/VERSION");
chomp $trunkversion;
if ($version eq $trunkversion) {
print "OK: local version $version matches trunk version $trunkversion\n";
exit 0;
} else {
print "WARN: local version $version does not match trunk version $trunkversion\n";
exit 1;
}
}
sub getargs {
my @args = @_;