fix(config): should return defaultConfig when config file doesnt exist

This commit is contained in:
Siyuan Miao 2025-02-19 10:24:27 +01:00
parent 5e91cfc7fa
commit a3d21557c3
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,5 @@
VERSION_DEV := 0.3.5-dev$(shell date +%Y%m%d%H%M)
VERSION := 0.3.4
VERSION_DEV := 0.3.7-dev$(shell date +%Y%m%d%H%M)
VERSION := 0.3.6
hash_resource:
@shasum -a 256 resource/jetkvm_native | cut -d ' ' -f 1 > resource/jetkvm_native.sha256

View File

@ -55,6 +55,9 @@ func LoadConfig() {
return
}
// load the default config
config = defaultConfig
file, err := os.Open(configPath)
if err != nil {
logger.Debug("default config file doesn't exist, using default")