From 25adf1ba18fd544d79baedf0ba7ff09ef1273f80 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 17 Jun 2020 09:15:00 +0200 Subject: [PATCH] Bug 25778: Remove install lib dir from PERL5LIB to prevent dup In a non dev environment, PERL5LIB will contain duplicate of $KOHA_HOME/installer and $KOHA_HOME/installer/lib To prevent that we remove them before appending them. Test plan: Try the code in a shell and confirm that it works as expected. Note: it does not happend in dev because adjust_paths_dev_install reset PERL5LIB to KOHA_HOME --- debian/scripts/koha-plack | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/scripts/koha-plack b/debian/scripts/koha-plack index 90da6cbd36..dd94b799f2 100755 --- a/debian/scripts/koha-plack +++ b/debian/scripts/koha-plack @@ -392,6 +392,7 @@ if [ $# -gt 0 ]; then adjust_paths_dev_install $name export DEV_INSTALL export KOHA_HOME + PERL5LIB=`echo $PERL5LIB | sed -e "s|:$KOHA_HOME/installer||g" -e "s|:$KOHA_HOME/lib/installer||g"` PERL5LIB=$PERL5LIB:$KOHA_HOME/installer:$KOHA_HOME/lib/installer # If debug mode is enabled, add the debugger lib path # to PERL5LIB if appropriate -- 2.20.1