aboutsummaryrefslogtreecommitdiffstats
path: root/setenv.pl
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-03-15 10:15:01 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-03-15 10:15:01 +0000
commit40a3bfb7566b02db2eb6019adcbefeaa19ffb42f (patch)
tree5a7d1c442b40e621e2f9f375decda38e89518ffb /setenv.pl
parent14570b18dd96d06f4b7c2aa11fade34aa8f06dad (diff)
parentb5c88eda2e87502872419edda10044c2d5b7c607 (diff)
Merge branch 'add-cypress'
Diffstat (limited to 'setenv.pl')
-rwxr-xr-xsetenv.pl7
1 files changed, 2 insertions, 5 deletions
diff --git a/setenv.pl b/setenv.pl
index 39dcc04b0..f1e9cf53b 100755
--- a/setenv.pl
+++ b/setenv.pl
@@ -25,12 +25,9 @@ for ( "$root/commonlib/perllib", "$root/perllib" ) {
$ENV{PERL5LIB} = "$_:$ENV{PERL5LIB}";
}
-# need to make sure we fetch this after our libs are in INC as some
-# vendor provided versions are old an incompatible with Moose
-use List::MoreUtils 'uniq';
-
# also set the path to our scripts etc
-$ENV{PATH} = join ':', uniq "$root/bin", split( m/:/, $ENV{PATH} );
+my %seen;
+$ENV{PATH} = join ':', grep { not $seen{$_}++ } "$root/bin", split( m/:/, $ENV{PATH} );
# we might want to require this file to configure something like a CGI script
if ( $0 eq __FILE__ ) {