diff --git a/CHANGES.md b/CHANGES.md index 8e8f08c9f59..2e864e3e775 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,5 @@ # 7.1.4 2024-??-?? + - 2024-10-24 Fixed Bug - 'Use of uninitialized value' warning on build custom package and there are no permissions to write to the target directory. Thanks to @BuilderNSV for reporting the issue. [#610](https://github.com/znuny/Znuny/issues/610) - 2024-10-22 Perl Module Hash::Merge is now be listed in znuny.CheckModules.pl/otrs.CheckModules.pl as mandatory. - 2024-10-21 Sector Nord AG: Fixed #571 AgentTicketProcess Mobile-View is not showing all elements of ActivityDialog. Thanks to @LuBroering (Lukas Bröring SectorNord AG). [PR#553](https://github.com/znuny/Znuny/pull/553) - 2024-10-16 AdminSystemConfiguration: Addon name is no longer translated. diff --git a/Kernel/System/Console/Command/Dev/Package/Build.pm b/Kernel/System/Console/Command/Dev/Package/Build.pm index 74b53d4b338..5b4814090b5 100644 --- a/Kernel/System/Console/Command/Dev/Package/Build.pm +++ b/Kernel/System/Console/Command/Dev/Package/Build.pm @@ -11,6 +11,7 @@ package Kernel::System::Console::Command::Dev::Package::Build; use strict; use warnings; +use utf8; use parent qw(Kernel::System::Console::BaseCommand); @@ -125,12 +126,13 @@ sub Run { my $File = $Kernel::OM->Get('Kernel::System::Main')->FileWrite( Location => $Self->GetArgument('target-directory') . '/' . $Filename, Content => \$Content, - Mode => 'utf8', # binmode|utf8 - Type => 'Local', # optional - Local|Attachment|MD5 - Permission => '644', # unix file permissions + Mode => 'utf8', + Type => 'Local', + Permission => '644', ); + if ( !$File ) { - $Self->PrintError("File $File could not be written.\n"); + $Self->PrintError("File $Filename could not be written.\n"); return $Self->ExitCodeError(); } @@ -138,12 +140,4 @@ sub Run { return $Self->ExitCodeOk(); } -# sub PostRun { -# my ( $Self, %Param ) = @_; -# -# # This will be called after Run() (even in case of exceptions). Perform any cleanups here. -# -# return; -# } - 1;