mirror of https://github.com/jetkvm/kvm.git
fix(config): should return defaultConfig when config file doesnt exist
This commit is contained in:
parent
5e91cfc7fa
commit
a3d21557c3
4
Makefile
4
Makefile
|
@ -1,5 +1,5 @@
|
||||||
VERSION_DEV := 0.3.5-dev$(shell date +%Y%m%d%H%M)
|
VERSION_DEV := 0.3.7-dev$(shell date +%Y%m%d%H%M)
|
||||||
VERSION := 0.3.4
|
VERSION := 0.3.6
|
||||||
|
|
||||||
hash_resource:
|
hash_resource:
|
||||||
@shasum -a 256 resource/jetkvm_native | cut -d ' ' -f 1 > resource/jetkvm_native.sha256
|
@shasum -a 256 resource/jetkvm_native | cut -d ' ' -f 1 > resource/jetkvm_native.sha256
|
||||||
|
|
|
@ -55,6 +55,9 @@ func LoadConfig() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// load the default config
|
||||||
|
config = defaultConfig
|
||||||
|
|
||||||
file, err := os.Open(configPath)
|
file, err := os.Open(configPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Debug("default config file doesn't exist, using default")
|
logger.Debug("default config file doesn't exist, using default")
|
||||||
|
|
Loading…
Reference in New Issue