]> git.proxmox.com Git - pve-zsync.git/commitdiff
typo fix: exsits -> exists
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 28 Sep 2015 09:40:02 +0000 (11:40 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 16 Oct 2015 09:09:56 +0000 (11:09 +0200)
pve-zsync

index c23bc4b369a7c4c0d0aa11a7052baff73c8eab8b..216057b6afbc2885273ae62ee9554e8a9f23d902 100644 (file)
--- a/pve-zsync
+++ b/pve-zsync
@@ -77,7 +77,7 @@ sub get_status {
     return undef;
 }
 
-sub check_pool_exsits {
+sub check_pool_exists {
     my ($target) = @_;
 
     my $cmd = '';
@@ -436,9 +436,9 @@ sub init {
        run_cmd("ssh-copy-id -i /root/.ssh/id_rsa.pub root\@$ip");
     }
 
-    die "Pool $dest->{all} does not exists\n" if check_pool_exsits($dest);
+    die "Pool $dest->{all} does not exists\n" if check_pool_exists($dest);
 
-    my $check = check_pool_exsits($source->{path}, $source->{ip}) if !$source->{vmid} && $source->{path};
+    my $check = check_pool_exists($source->{path}, $source->{ip}) if !$source->{vmid} && $source->{path};
 
     die "Pool $source->{path} does not exists\n" if undef($check);