mirror of
https://github.com/codex-storage/cs-codex-dist-tests.git
synced 2025-02-03 07:43:52 +00:00
Fixes error where empty string is passed as datapath
This commit is contained in:
parent
3914d58a6a
commit
939eed544d
@ -17,7 +17,7 @@ namespace CodexDiscordBotPlugin
|
||||
AddEnvVar("ADMINROLE", config.AdminRoleName);
|
||||
AddEnvVar("ADMINCHANNELNAME", config.AdminChannelName);
|
||||
|
||||
if (config.DataPath != null)
|
||||
if (!string.IsNullOrEmpty(config.DataPath))
|
||||
{
|
||||
AddEnvVar("DATAPATH", config.DataPath);
|
||||
AddVolume(config.DataPath, 1.GB());
|
||||
|
Loading…
x
Reference in New Issue
Block a user