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…
Reference in New Issue