diff --git a/debian/apthook/pve-apt-hook b/debian/apthook/pve-apt-hook index 1f77a1a..2053fef 100755 --- a/debian/apthook/pve-apt-hook +++ b/debian/apthook/pve-apt-hook @@ -20,14 +20,16 @@ if (!defined $fd || $fd == 0) { exit 0; } -open(my $fh, "<&=${fd}") or die "E: could not open APT_HOOK_INFO_FD (${fd}) - $!\n"; +open(my $fh, "<&=", $fd) or die "E: could not open APT_HOOK_INFO_FD (${fd}) - $!\n"; my $cleanup = sub { my ($rc, $confirm) = @_; close($fh); - my $line = if $confirm; + if ($confirm) { + my $line = ; + } exit $rc; };