]> git.proxmox.com Git - pve-common.git/commit
tools: download_file_from_url: move check for existing file outside eval
authorLorenz Stechauner <l.stechauner@proxmox.com>
Wed, 16 Jun 2021 09:35:58 +0000 (11:35 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 16 Jun 2021 10:14:52 +0000 (12:14 +0200)
commitf52ecff957867ae699e4b1be4059a3af0b436e42
treef888c5fc38ff36665587749eab7c5d74e4ec703b
parent43cb80c5f24755bf9fdaa5b2593fdf076c760659
tools: download_file_from_url: move check for existing file outside eval

it is not necessary to include this block in the eval which when it
fails tries to unlink $tmpdest, because in the check for the existing
file $tmpdest is not used.
src/PVE/Tools.pm