Bug 28519: Add lib to koha-shell

Test plan:
% koha-shell kohadev -c 'echo $PERL5LIB'
=> /kohadevbox/koha:/kohadevbox/koha/lib

% koha-shell kohadev
echo $PERL5LIB
=> /kohadevbox/koha:/kohadevbox/koha/lib:/kohadevbox/qa-test-tools

Note that this is not consistent but at least we have lib now in both
situations

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2021-06-17 15:41:46 +02:00
parent 40089a0a53
commit e917b5788c
1 changed files with 1 additions and 0 deletions

View File

@ -89,6 +89,7 @@ sub read_perl5lib {
if ( $dev_install ) {
# pick PERL5LIB from the intranetdir entry
$result = `xmlstarlet sel -t -v "yazgfs/config/intranetdir" /etc/koha/sites/$instance/koha-conf.xml`;
$result = "$result:$result/lib";
}
return $result;
}