forked from TrueCloudLab/rclone
config: avoid remote with empty name from environment
This commit is contained in:
parent
1720d3e11c
commit
8d2907d8f5
1 changed files with 1 additions and 1 deletions
|
@ -637,7 +637,7 @@ func FileDeleteKey(section, key string) bool {
|
||||||
return LoadedData().DeleteKey(section, key)
|
return LoadedData().DeleteKey(section, key)
|
||||||
}
|
}
|
||||||
|
|
||||||
var matchEnv = regexp.MustCompile(`^RCLONE_CONFIG_(.*?)_TYPE=.*$`)
|
var matchEnv = regexp.MustCompile(`^RCLONE_CONFIG_(.+?)_TYPE=.*$`)
|
||||||
|
|
||||||
// FileSections returns the sections in the config file
|
// FileSections returns the sections in the config file
|
||||||
// including any defined by environment variables.
|
// including any defined by environment variables.
|
||||||
|
|
Loading…
Reference in a new issue