Skip to content
This repository was archived by the owner on Dec 27, 2023. It is now read-only.

Commit 196cacf

Browse files
committed
Minor environment variables related bugfixes
1 parent 552693c commit 196cacf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Installer/Installer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ protected function executeComposerCommand($installPath)
7676

7777
echo "\n";
7878
passthru(
79-
$this->composerCmd.' --working-dir="'.$installPath.'" create-project dawehner/jupyter-php pkgs',
79+
'PATH='.getenv('PATH').' '.$this->composerCmd.' --working-dir="'.$installPath.'" create-project dawehner/jupyter-php pkgs',
8080
$composerStatus
8181
);
8282
echo "\n";

src/System/UnixSystem.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public function checkIfCommandExists($cmdName)
4343
}
4444

4545
$sysResponse = exec(
46+
'PATH='.getenv('PATH').'; '.
4647
"if command -v ".$cmdName." >/dev/null 2>&1; then echo \"true\"; else echo \"false\"; fi;"
4748
);
4849

0 commit comments

Comments
 (0)