Skip to content

Commit

Permalink
fix: don't block CLI in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker committed Aug 4, 2024
1 parent d633582 commit 62b8387
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/stores/settings.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import type Conf from 'conf';
import {yellow} from 'kleur';
import {askForPassword} from '../services/cli.settings.services';
import {loadConfig} from '../utils/config.utils';
import { isProcessToken } from "../utils/process.utils";

class SettingsStore {
readonly #config: Conf<CliSettingsConfig>;
Expand All @@ -22,6 +23,10 @@ class SettingsStore {
static async init(): Promise<SettingsStore> {
const store = new SettingsStore(getSettingsConfig());

if (isProcessToken()) {
return store;
}

if (nonNullish(store.config.get('encryption'))) {
return store;
}
Expand Down

0 comments on commit 62b8387

Please sign in to comment.