From 81edacac1a95221814915063a5de9d40aeaf75f5 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Wed, 3 Mar 2021 22:25:17 -0700 Subject: [PATCH] Girocco/Config.pm: alter PATH adjustment advice Instead of trying to munge the output of qx(getconf PATH), suggest using the Girocco::Dumper::GetConfPath function since it knows how to properly sanitize the result. Signed-off-by: Kyle J. McKay --- Girocco/Config.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Girocco/Config.pm b/Girocco/Config.pm index 4efc7e7..75f2b67 100644 --- a/Girocco/Config.pm +++ b/Girocco/Config.pm @@ -104,7 +104,8 @@ our $giroccobranch = undef; # To keep whatever PATH is in effect when Girocco is installed use: #$ENV{PATH} = $ENV{PATH}; # To add /usr/local/bin to the standard PATH, use something like this: -#$ENV{PATH} = substr(`/usr/bin/getconf PATH`,0,-1).":/usr/local/bin"; +#use Girocco::Dumper qw(GetConfPath); +#$ENV{PATH} = GetConfPath().":/usr/local/bin"; # -- 2.11.4.GIT