mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-19 18:28:39 +01:00
Aphlict should respect the PATH set in the config.
Reviewed by: epriestley
This commit is contained in:
parent
4d4b4f4837
commit
f5e71eb889
1 changed files with 8 additions and 0 deletions
|
@ -78,3 +78,11 @@ $translation = PhabricatorEnv::newObjectFromConfig('translation.provider');
|
||||||
PhutilTranslator::getInstance()
|
PhutilTranslator::getInstance()
|
||||||
->setLanguage($translation->getLanguage())
|
->setLanguage($translation->getLanguage())
|
||||||
->addTranslations($translation->getTranslations());
|
->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);
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue