mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-27 06:34:02 +00:00
avoid warning if file does not exist
This commit is contained in:
parent
6c3aef09cb
commit
b8e02bc2dc
@ -978,7 +978,7 @@ sub read_apt_auth {
|
|||||||
|
|
||||||
local $/;
|
local $/;
|
||||||
|
|
||||||
my $raw = <$fd>;
|
my $raw = defined($fd) ? <$fd> : '';
|
||||||
|
|
||||||
$raw =~ s/^\s+//;
|
$raw =~ s/^\s+//;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user