Fix Test Mode CWTCH_HOME Setting
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Sarah Jamie Lewis 2023-02-08 15:09:09 -08:00
parent 47f3cd8ee1
commit 645fa83827
1 changed files with 2 additions and 2 deletions

View File

@ -154,9 +154,9 @@ class CwtchFfi implements Cwtch {
if (Platform.isLinux) {
home = envVars['HOME'] ?? "";
if (EnvironmentConfig.TEST_MODE) {
cwtchDir = envVars['CWTCH_HOME'] ?? path.join(envVars['HOME']!, ".cwtch");
} else {
cwtchDir = envVars['CWTCH_HOME']!;
} else {
cwtchDir = envVars['CWTCH_HOME'] ?? path.join(envVars['HOME']!, ".cwtch");
}