From 45d8e2aeb737a5d3b91217a01f81392341f190d2 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 12 May 2026 11:14:06 -0400 Subject: Reverse logic on status check --- src/cli/stasis/system_requirements.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/cli') diff --git a/src/cli/stasis/system_requirements.c b/src/cli/stasis/system_requirements.c index b531ae1..a48c113 100644 --- a/src/cli/stasis/system_requirements.c +++ b/src/cli/stasis/system_requirements.c @@ -10,72 +10,72 @@ void check_system_env_requirements() { int status = 0; status = envctl_register(&globals.envctl, STASIS_ENVCTL_PASSTHRU, NULL, "TMPDIR"); - if (!status) { + if (status) { SYSERROR("envctl_register failed"); exit(1); } status = envctl_register(&globals.envctl, STASIS_ENVCTL_PASSTHRU, NULL, "STASIS_ROOT"); - if (!status) { + if (status) { SYSERROR("envctl_register failed"); exit(1); } status = envctl_register(&globals.envctl, STASIS_ENVCTL_PASSTHRU, NULL, "STASIS_SYSCONFDIR"); - if (!status) { + if (status) { SYSERROR("envctl_register failed"); exit(1); } status = envctl_register(&globals.envctl, STASIS_ENVCTL_PASSTHRU, NULL, "STASIS_CPU_COUNT"); - if (!status) { + if (status) { SYSERROR("envctl_register failed"); exit(1); } status = envctl_register(&globals.envctl, STASIS_ENVCTL_REQUIRED | STASIS_ENVCTL_REDACT, callback_except_gh, "STASIS_GH_TOKEN"); - if (!status) { + if (status) { SYSERROR("envctl_register failed"); exit(1); } status = envctl_register(&globals.envctl, STASIS_ENVCTL_REQUIRED, callback_except_jf, "STASIS_JF_ARTIFACTORY_URL"); - if (!status) { + if (status) { SYSERROR("envctl_register failed"); exit(1); } status = envctl_register(&globals.envctl, STASIS_ENVCTL_REDACT, NULL, "STASIS_JF_ACCESS_TOKEN"); - if (!status) { + if (status) { SYSERROR("envctl_register failed"); exit(1); } status = envctl_register(&globals.envctl, STASIS_ENVCTL_PASSTHRU, NULL, "STASIS_JF_USER"); - if (!status) { + if (status) { SYSERROR("envctl_register failed"); exit(1); } status = envctl_register(&globals.envctl, STASIS_ENVCTL_REDACT, NULL, "STASIS_JF_PASSWORD"); - if (!status) { + if (status) { SYSERROR("envctl_register failed"); exit(1); } status = envctl_register(&globals.envctl, STASIS_ENVCTL_REDACT, NULL, "STASIS_JF_SSH_KEY_PATH"); - if (!status) { + if (status) { SYSERROR("envctl_register failed"); exit(1); } status = envctl_register(&globals.envctl, STASIS_ENVCTL_REDACT, NULL, "STASIS_JF_SSH_PASSPHRASE"); - if (!status) { + if (status) { SYSERROR("envctl_register failed"); exit(1); } status = envctl_register(&globals.envctl, STASIS_ENVCTL_REDACT, NULL, "STASIS_JF_CLIENT_CERT_CERT_PATH"); - if (!status) { + if (status) { SYSERROR("envctl_register failed"); exit(1); } status = envctl_register(&globals.envctl, STASIS_ENVCTL_REDACT, NULL, "STASIS_JF_CLIENT_CERT_KEY_PATH"); - if (!status) { + if (status) { SYSERROR("envctl_register failed"); exit(1); } status = envctl_register(&globals.envctl, STASIS_ENVCTL_REQUIRED, callback_except_jf, "STASIS_JF_REPO"); - if (!status) { + if (status) { SYSERROR("envctl_register failed"); exit(1); } -- cgit