]> git.proxmox.com Git - pve-zsync.git/blobdiff - pve-zsync
typo fix: exsits -> exists
[pve-zsync.git] / 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);