Skip to content

Commit

Permalink
cli: Fix early return bug
Browse files Browse the repository at this point in the history
That prevent caddy config from beeing written on .env changes
  • Loading branch information
jhf committed Jan 15, 2025
1 parent 277ba94 commit a0ee4a4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cli/src/statbus.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a0ee4a4

Please sign in to comment.