mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00:00
cmd/ctrld: correct the write default config condition
When "--cd" is supplied, we don't want to write default config. This happens due to faulty in resolving conflicts in !70.
This commit is contained in:
committed by
Cuong Manh Le
parent
7b13fd862d
commit
b021833ed6
@@ -63,7 +63,7 @@ func initCLI() {
|
||||
}
|
||||
|
||||
noConfigStart := isNoConfigStart(cmd) && cdUID != ""
|
||||
writeDefaultConfig := !noConfigStart && configBase64 == ""
|
||||
writeDefaultConfig := !noConfigStart && configBase64 == "" && cdUID == ""
|
||||
configs := []struct {
|
||||
name string
|
||||
written bool
|
||||
|
||||
Reference in New Issue
Block a user