1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-16 00:04:40 +00:00

config: --config "" or "/notfound" for in memory config only #4996

If `--config` is set to empty string or the special value `/notfound`
then rclone will keep the config file in memory only.
This commit is contained in:
Nick Craig-Wood
2021-03-13 12:36:38 +00:00
parent 46078d391f
commit bb0b6432ae
4 changed files with 54 additions and 2 deletions

View File

@@ -242,8 +242,7 @@ func SaveConfig() {
waitingTimeMs := mathrand.Intn(1000)
time.Sleep(time.Duration(waitingTimeMs) * time.Millisecond)
}
log.Fatalf("Failed to save config after %d tries: %v", ci.LowLevelRetries, err)
fs.Errorf(nil, "Failed to save config after %d tries: %v", ci.LowLevelRetries, err)
return
}