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

Commit 6b8602b

Browse files
committed
Merge pull request #9 from dawehner/fix-other-than-linux
Now the installer should work on OSX
2 parents 8dcee06 + fdd822d commit 6b8602b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Installer/Installer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
namespace Litipk\JupyterPhpInstaller\Installer;
55

66

7+
use Litipk\JupyterPhpInstaller\System\LinuxSystem;
78
use Litipk\JupyterPhpInstaller\System\MacSystem;
89
use Litipk\JupyterPhpInstaller\System\System;
910
use Litipk\JupyterPhpInstaller\System\UnixSystem;
@@ -30,7 +31,7 @@ public static function getInstaller($composerCmd = null)
3031
throw new \RuntimeException('Unable to find the composer executable.');
3132
}
3233

33-
if ($system instanceof UnixSystem) {
34+
if ($system instanceof LinuxSystem) {
3435
return new LinuxInstaller($system, $composerCmd);
3536
} elseif ($system instanceof MacSystem) {
3637
return new MacInstaller($system, $composerCmd);

0 commit comments

Comments
 (0)