mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-07 06:18:28 +00:00
cmd/stcli: Update for new folder type
This commit is contained in:
parent
9fdaa637a8
commit
3c2ac3522c
@ -148,7 +148,7 @@ func foldersOverride(c *cli.Context) {
|
||||
cfg := getConfig(c)
|
||||
rid := c.Args()[0]
|
||||
for _, folder := range cfg.Folders {
|
||||
if folder.ID == rid && folder.Type == config.FolderTypeReadOnly {
|
||||
if folder.ID == rid && folder.Type == config.FolderTypeSendOnly {
|
||||
response := httpPost(c, "db/override", "")
|
||||
if response.StatusCode != 200 {
|
||||
err := fmt.Sprint("Failed to override changes\nStatus code: ", response.StatusCode)
|
||||
|
Loading…
x
Reference in New Issue
Block a user