mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
env: Remove quotes when parsing a config env file (#13953)
The code parsing the config environment file does not remove quotes of environment variables values. This commit adds this capability.
This commit is contained in:
@@ -45,6 +45,26 @@ export MINIO_ROOT_PASSWORD=minio123`,
|
||||
},
|
||||
},
|
||||
},
|
||||
// Value with double quotes
|
||||
{`export MINIO_ROOT_USER="minio"`,
|
||||
false,
|
||||
[]envKV{
|
||||
{
|
||||
Key: "MINIO_ROOT_USER",
|
||||
Value: "minio",
|
||||
},
|
||||
},
|
||||
},
|
||||
// Value with single quotes
|
||||
{`export MINIO_ROOT_USER='minio'`,
|
||||
false,
|
||||
[]envKV{
|
||||
{
|
||||
Key: "MINIO_ROOT_USER",
|
||||
Value: "minio",
|
||||
},
|
||||
},
|
||||
},
|
||||
{`
|
||||
MINIO_ROOT_USER=minio
|
||||
MINIO_ROOT_PASSWORD=minio123`,
|
||||
|
||||
Reference in New Issue
Block a user