Fixes error where empty string is passed as datapath

This commit is contained in:
benbierens 2023-10-25 14:33:47 +02:00
parent 3914d58a6a
commit 939eed544d
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
1 changed files with 1 additions and 1 deletions

View File

@ -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());