Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
die "missing temporary file name\n" if !$tmpfilename;
my $size = -s $tmpfilename;
- die "temporary file '$tmpfilename' does not exists\n" if !defined($size);
+ die "temporary file '$tmpfilename' does not exist\n" if !defined($size);
my $filename = $param->{filename};
$partnum = file_read_firstline("${partnum_path}partition");
- die "Partition does not exists\n" if !defined($partnum);
+ die "Partition does not exist\n" if !defined($partnum);
#untaint and ensure it is a int
if ($partnum =~ m/(\d+)/) {
my $scfg = $cfg->{ids}->{$storeid};
- die "storage '$storeid' does not exists\n" if (!$noerr && !$scfg);
+ die "storage '$storeid' does not exist\n" if (!$noerr && !$scfg);
return $scfg;
}
File::Path::remove_tree($path);
} else {
if (!(-f $path || -l $path)) {
- warn "disk image '$path' does not exists\n";
+ warn "disk image '$path' does not exist\n";
return undef;
}