From b0aa99f3945287ce2a2ace308c038bd1a68d0d6a Mon Sep 17 00:00:00 2001 From: svefnz Date: Wed, 8 Jul 2026 00:52:58 +0800 Subject: [PATCH] fix: ensure config.json is generated if it does not exist when saving a new configuration --- src/core.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.sh b/src/core.sh index 02e6a53..13d6ba6 100644 --- a/src/core.sh +++ b/src/core.sh @@ -356,7 +356,7 @@ create() { [[ $is_config_file ]] && is_no_del_msg=1 && del $is_config_file # save json to file cat <<<$is_new_json >$is_json_file - if [[ $is_new_install ]]; then + if [[ ! -f $is_config_json ]]; then # config.json create config.json fi