Skip to content

Commit

Permalink
Merge pull request #8 from rgasch/dev
Browse files Browse the repository at this point in the history
Fixed misspelled variable + better checking for failed system() call.
  • Loading branch information
rgasch authored Dec 4, 2022
2 parents e4cb60a + 304dedd commit bdf78e1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions InstallLaravel.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,10 @@
'--with-jetstream-inertia',
'--with-strict-mode'
];
$withFilament = false;
$withJetstramLivewire = false;
$withJetstramInertia = false;
$withStrictMode = false;
$withFilament = false;
$withJetstreamLivewire = false;
$withJetstreamInertia = false;
$withStrictMode = false;
for($i=2; $i<$argc; $i++) {
switch($argv[$i]) {
case '--with-filament':
Expand All @@ -204,7 +204,7 @@
$withJetstreamLivewire = true;
break;
case '--with-jetstream-inertia':
$withJetstramInertia = true;
$withJetstreamInertia = true;
break;
case '--with-strict-mode':
$withStrictMode = true;
Expand All @@ -214,10 +214,10 @@
}
}

if ($withFilament && ($withJetstreamLivewire || $withJetstramInertia)) {
if ($withFilament && ($withJetstreamLivewire || $withJetstreamInertia)) {
die("Please choose either Filament or Jetstream support but not both\n");
}
if ($withJetstreamLivewire && $withJetstramInertia) {
if ($withJetstreamLivewire && $withJetstreamInertia) {
die("Please choose either Jetstream-Livewire or Jetstream-Inertia support but not both\n");
}

Expand All @@ -233,7 +233,7 @@
}
print "{$color}Installing Laravel into [$targetDir]{$noColor}\n";
$rc = system($cmd);
if (!$rc === false) {
if ($rc === false) {
die("System command [$cmd] failed ... exiting\n");
}

Expand All @@ -248,7 +248,7 @@
$packages = array_merge($packages, $packagesJetstream);
$postProcessSteps = array_merge($postProcessSteps, $postProcessStepsJetstreamInertia);
$instructions = array_merge($instructions, $instructionsJetstream);
} elseif ($withJetstramInertia) {
} elseif ($withJetstreamInertia) {
$packages = array_merge($packages, $packagesJetstream);
$postProcessSteps = array_merge($postProcessSteps, $postProcessStepsJetstreamInertia);
$instructions = array_merge($instructions, $instructionsJetstream);
Expand Down

0 comments on commit bdf78e1

Please sign in to comment.