forked from TrueCloudLab/rclone
Fix config loop - fixes #25
This commit is contained in:
parent
165e89c266
commit
8d1c0ad07c
1 changed files with 2 additions and 1 deletions
|
@ -330,6 +330,7 @@ func EditConfig() {
|
||||||
name := ChooseRemote()
|
name := ChooseRemote()
|
||||||
EditRemote(name)
|
EditRemote(name)
|
||||||
case 'n':
|
case 'n':
|
||||||
|
nameLoop:
|
||||||
for {
|
for {
|
||||||
fmt.Printf("name> ")
|
fmt.Printf("name> ")
|
||||||
name := ReadLine()
|
name := ReadLine()
|
||||||
|
@ -340,7 +341,7 @@ func EditConfig() {
|
||||||
fmt.Printf("Can't use %q as it can be confused a drive letter\n", name)
|
fmt.Printf("Can't use %q as it can be confused a drive letter\n", name)
|
||||||
default:
|
default:
|
||||||
NewRemote(name)
|
NewRemote(name)
|
||||||
break
|
break nameLoop
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
case 'd':
|
case 'd':
|
||||||
|
|
Loading…
Reference in a new issue