fix(install): ensure config.toml is created if it doesn't exist or is empty

This commit is contained in:
35C4n0r
2026-05-23 12:19:10 +00:00
parent 77e21139e0
commit 72737581f7
@@ -173,8 +173,9 @@ function write_minimal_default_config() {
function populate_config_toml() {
local config_path="$HOME/.codex/config.toml"
mkdir -p "$(dirname "$${config_path}")"
touch "$${config_path}"
if [ ! -f "$${config_path}" ]; then
if [ ! -s "$${config_path}" ]; then
printf "Using minimal default configuration\n"
write_minimal_default_config "$${config_path}"
fi