Bug 28519: Add lib to koha-shell
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 17 Jun 2021 13:41:46 +0000 (15:41 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 17 Jun 2021 13:59:40 +0000 (15:59 +0200)
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>
debian/scripts/koha-shell

index eb59909..808fc13 100755 (executable)
@@ -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;
 }