Bug 36517: Fix output from install_plugins.pl
When misc/devel/install_plugins.pl does not find any plugins, it prints the list of pluginsdir, but with a literal \n separating the dirs, and no newline at the end. To test: - Edit koha-conf.xml and add a second entry for <pluginsdir>, so there are two entries. The second one could just be a copy of the original. - Run "perl misc/devel/install_plugins.pl" - Note the output looks something like this: No plugins found pluginsdir contains: /var/lib/koha/kohadev/plugins\n/var/lib/koha/kohadev/pluginsroot@kohadevbox:koha(master)$ - Apply the patch and run the script again. Output should be: No plugins found pluginsdir contains: /var/lib/koha/kohadev/plugins /var/lib/koha/kohadev/plugins root@kohadevbox:koha(master)$ - Sign off Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> (cherry picked from commit4848def5e2) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commitf2a05fadd0) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
de18918339
commit
2644f581fd
|
|
@ -56,7 +56,7 @@ unless (@installed_plugins) {
|
|||
my $plugins_dir = C4::Context->config("pluginsdir");
|
||||
if ( ref($plugins_dir) eq 'ARRAY' ) {
|
||||
print "No plugins found\n";
|
||||
print "pluginsdir contains: \n" . join( '\n', @{$plugins_dir} );
|
||||
print "pluginsdir contains: \n" . join( "\n", @{$plugins_dir} ) . "\n";
|
||||
}
|
||||
else {
|
||||
print "No plugins found at $plugins_dir\n";
|
||||
|
|
|
|||
Loading…
Reference in New Issue