Skip to content

Commit a652683

Browse files
committed
[6.x] Return exit code 1 from static:clear when static caching is disabled (#11344)
1 parent c06979c commit a652683

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Console/Commands/StaticClear.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function handle()
3636
if (! config('statamic.static_caching.strategy')) {
3737
$this->components->error('Static caching is not enabled.');
3838

39-
return 0;
39+
return 1;
4040
}
4141

4242
spin(callback: fn () => StaticCache::flush(), message: 'Clearing the static page cache...');

0 commit comments

Comments
 (0)