(minor) don't keep adding the same thing to $PATH

This commit is contained in:
Sitaram Chamarty 2012-07-10 21:04:52 +05:30
parent f35db87efc
commit fd0778e6d6

View file

@ -91,7 +91,7 @@ do $ENV{G3T_RC} if exists $ENV{G3T_RC} and -r $ENV{G3T_RC};
unshift @INC, "$rc{LOCAL_CODE}/lib" if $rc{LOCAL_CODE}; unshift @INC, "$rc{LOCAL_CODE}/lib" if $rc{LOCAL_CODE};
$ENV{PATH} = "$ENV{GL_BINDIR}:$ENV{PATH}"; $ENV{PATH} = "$ENV{GL_BINDIR}:$ENV{PATH}" unless $ENV{PATH} =~ /^$ENV{GL_BINDIR}:/;
{ {
$rc{GL_TID} = $ENV{GL_TID} ||= $$; $rc{GL_TID} = $ENV{GL_TID} ||= $$;