Aphlict should respect the PATH set in the config.
Reviewed by: epriestley
This commit is contained in:
@@ -78,3 +78,11 @@ $translation = PhabricatorEnv::newObjectFromConfig('translation.provider');
|
||||
PhutilTranslator::getInstance()
|
||||
->setLanguage($translation->getLanguage())
|
||||
->addTranslations($translation->getTranslations());
|
||||
|
||||
// Append any paths to $PATH if we need to.
|
||||
$paths = PhabricatorEnv::getEnvConfig('environment.append-paths');
|
||||
if (!empty($paths)) {
|
||||
$current_env_path = getenv('PATH');
|
||||
$new_env_paths = implode(':', $paths);
|
||||
putenv('PATH='.$current_env_path.':'.$new_env_paths);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user