From 3927ecdb0ac5b61578e4e967818da90db1468d44 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 16 Jun 2016 11:44:31 +0200 Subject: [PATCH] fix typo --- pve-zsync | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pve-zsync b/pve-zsync index 4491d1a..440ab56 100644 --- a/pve-zsync +++ b/pve-zsync @@ -107,7 +107,10 @@ sub check_pool_exists { my ($target) = @_; my $cmd = []; - push @$cmd, 'ssh', "root\@$target->{ip}", '--', if $target->{ip}; + + if ($target->{ip}) { + push @$cmd, 'ssh', "root\@$target->{ip}", '--'; + } push @$cmd, 'zfs', 'list', '-H', '--', $target->{all}; eval { run_cmd($cmd); -- 2.39.2