mirror of
https://github.com/rclone/rclone.git
synced 2025-12-28 14:13:28 +00:00
fstest: Fix config file override, hence fixing make quicktest
This commit is contained in:
@@ -59,6 +59,12 @@ func Initialise() {
|
|||||||
// If your local config is encrypted set environment variable
|
// If your local config is encrypted set environment variable
|
||||||
// "RCLONE_CONFIG_PASS=hunter2" (or your password)
|
// "RCLONE_CONFIG_PASS=hunter2" (or your password)
|
||||||
fs.Config.AskPassword = false
|
fs.Config.AskPassword = false
|
||||||
|
// Override the config file from the environment - we don't
|
||||||
|
// parse the flags any more so this doesn't happen
|
||||||
|
// automatically
|
||||||
|
if envConfig := os.Getenv("RCLONE_CONFIG"); envConfig != "" {
|
||||||
|
config.ConfigPath = envConfig
|
||||||
|
}
|
||||||
config.LoadConfig()
|
config.LoadConfig()
|
||||||
if *Verbose {
|
if *Verbose {
|
||||||
fs.Config.LogLevel = fs.LogLevelDebug
|
fs.Config.LogLevel = fs.LogLevelDebug
|
||||||
|
|||||||
Reference in New Issue
Block a user