From a0ee4a47dfc0a5bbaa6b68d75fc20112dcb7075c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20H=2E=20Fjeld?= Date: Wed, 15 Jan 2025 12:43:44 +0100 Subject: [PATCH] cli: Fix early return bug That prevent caddy config from beeing written on .env changes --- cli/src/statbus.cr | 1 - 1 file changed, 1 deletion(-) diff --git a/cli/src/statbus.cr b/cli/src/statbus.cr index c496fc083..036d5ca84 100644 --- a/cli/src/statbus.cr +++ b/cli/src/statbus.cr @@ -1331,7 +1331,6 @@ class StatBus puts "Updating .env with changes - old version backed up as .env.backup.#{backup_suffix}" if @verbose File.write(".env.backup.#{backup_suffix}", current_content) File.write(".env", new_content) - return # Skip the File.write below since we already wrote the file else puts "No changes detected in .env, skipping backup" if @verbose end