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

Commit fdd822d

Browse files
committed
Ensure the installer works on other system than linux
1 parent 7c7e926 commit fdd822d

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)