]> git.koha-community.org Git - koha.git/commit
Bug 36517: Fix output from install_plugins.pl
authorMagnus Enger <magnus@libriotech.no>
Fri, 5 Apr 2024 13:41:08 +0000 (13:41 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 12 Apr 2024 09:26:01 +0000 (11:26 +0200)
commit4848def5e2a336e01bf0dd0ff61a75a30b35f137
treee9d2dfebb25fdd8b9fbbb8314d6b4eb8542935d0
parent4436a7d41a74bf002fdd80ec97f0be38d40eee22
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>
misc/devel/install_plugins.pl