From 9e4adde104f230d0c6a461e28b91f83af03c8bb0 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Fri, 10 Jan 2025 16:09:50 +0000 Subject: [PATCH] Return exit code 1 from `static:clear` when static caching is disabled --- src/Console/Commands/StaticClear.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console/Commands/StaticClear.php b/src/Console/Commands/StaticClear.php index ee8c0709b7..3aaecfe94d 100644 --- a/src/Console/Commands/StaticClear.php +++ b/src/Console/Commands/StaticClear.php @@ -36,7 +36,7 @@ public function handle() if (! config('statamic.static_caching.strategy')) { $this->components->error('Static caching is not enabled.'); - return 0; + return 1; } spin(callback: fn () => StaticCache::flush(), message: 'Clearing the static page cache...');