Skip to content

Commit bdf78e1

Browse files
authored
Merge pull request #8 from rgasch/dev
Fixed misspelled variable + better checking for failed system() call.
2 parents e4cb60a + 304dedd commit bdf78e1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

InstallLaravel.php

+9-9
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,10 @@
190190
'--with-jetstream-inertia',
191191
'--with-strict-mode'
192192
];
193-
$withFilament = false;
194-
$withJetstramLivewire = false;
195-
$withJetstramInertia = false;
196-
$withStrictMode = false;
193+
$withFilament = false;
194+
$withJetstreamLivewire = false;
195+
$withJetstreamInertia = false;
196+
$withStrictMode = false;
197197
for($i=2; $i<$argc; $i++) {
198198
switch($argv[$i]) {
199199
case '--with-filament':
@@ -204,7 +204,7 @@
204204
$withJetstreamLivewire = true;
205205
break;
206206
case '--with-jetstream-inertia':
207-
$withJetstramInertia = true;
207+
$withJetstreamInertia = true;
208208
break;
209209
case '--with-strict-mode':
210210
$withStrictMode = true;
@@ -214,10 +214,10 @@
214214
}
215215
}
216216

217-
if ($withFilament && ($withJetstreamLivewire || $withJetstramInertia)) {
217+
if ($withFilament && ($withJetstreamLivewire || $withJetstreamInertia)) {
218218
die("Please choose either Filament or Jetstream support but not both\n");
219219
}
220-
if ($withJetstreamLivewire && $withJetstramInertia) {
220+
if ($withJetstreamLivewire && $withJetstreamInertia) {
221221
die("Please choose either Jetstream-Livewire or Jetstream-Inertia support but not both\n");
222222
}
223223

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

@@ -248,7 +248,7 @@
248248
$packages = array_merge($packages, $packagesJetstream);
249249
$postProcessSteps = array_merge($postProcessSteps, $postProcessStepsJetstreamInertia);
250250
$instructions = array_merge($instructions, $instructionsJetstream);
251-
} elseif ($withJetstramInertia) {
251+
} elseif ($withJetstreamInertia) {
252252
$packages = array_merge($packages, $packagesJetstream);
253253
$postProcessSteps = array_merge($postProcessSteps, $postProcessStepsJetstreamInertia);
254254
$instructions = array_merge($instructions, $instructionsJetstream);

0 commit comments

Comments
 (0)