mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-08-10 13:20:33 +02: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:
+1
-1
@@ -63,7 +63,7 @@ func initCLI() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
noConfigStart := isNoConfigStart(cmd) && cdUID != ""
|
noConfigStart := isNoConfigStart(cmd) && cdUID != ""
|
||||||
writeDefaultConfig := !noConfigStart && configBase64 == ""
|
writeDefaultConfig := !noConfigStart && configBase64 == "" && cdUID == ""
|
||||||
configs := []struct {
|
configs := []struct {
|
||||||
name string
|
name string
|
||||||
written bool
|
written bool
|
||||||
|
|||||||
Reference in New Issue
Block a user