Skip to content
This repository was archived by the owner on May 9, 2019. It is now read-only.

Commit 115d2bc

Browse files
authored
Update Runner.php
1 parent 9370fde commit 115d2bc

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/Helpers/Corundum/Runner.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,10 @@ public function apply(string $name, Command $command = null, $checkExists = fals
9494
$this->corundum->imagePath($name),
9595
$key
9696
);
97+
98+
$updated = File::isFile($thumb);
9799

98-
if ($checkExists && File::isFile($thumb))
100+
if ($checkExists && $updated)
99101
{
100102
continue;
101103
}
@@ -109,7 +111,11 @@ public function apply(string $name, Command $command = null, $checkExists = fals
109111

110112
if ($command)
111113
{
112-
$command->info('Thumbnail `' . $key . '` of the file `' . $name . '` is created!');
114+
if ($updated) {
115+
$command->warn('Thumbnail `' . $key . '` of the file `' . $name . '` is updated!');
116+
} else {
117+
$command->info('Thumbnail `' . $key . '` of the file `' . $name . '` is created!');
118+
}
113119
}
114120
}
115121
}

0 commit comments

Comments
 (0)