aboutsummaryrefslogtreecommitdiff
path: root/src/cli/stasis/system_requirements.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2024-11-06 08:55:52 -0500
committerGitHub <noreply@github.com>2024-11-06 08:55:52 -0500
commit52e6d0f495023c0aa939bf6b2170ca5ea853202b (patch)
tree897a87316c280b6824892368662afcb848de1cf6 /src/cli/stasis/system_requirements.c
parent6db1b15b5c62d6fb52825c1d833ac8dfa9a49fbb (diff)
parent46ae10e55603b8852612ebe12c7636c2b358bdd6 (diff)
downloadstasis-52e6d0f495023c0aa939bf6b2170ca5ea853202b.tar.gz
Merge pull request #67 from jhunkeler/safety-and-convenience
Safety and convenience
Diffstat (limited to 'src/cli/stasis/system_requirements.c')
-rw-r--r--src/cli/stasis/system_requirements.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/cli/stasis/system_requirements.c b/src/cli/stasis/system_requirements.c
index 53ebbf7..d8d7df3 100644
--- a/src/cli/stasis/system_requirements.c
+++ b/src/cli/stasis/system_requirements.c
@@ -67,16 +67,11 @@ void check_requirements(struct Delivery *ctx) {
check_system_env_requirements();
}
-void check_pathvar(struct Delivery *ctx) {
+void check_system_path() {
char *pathvar = NULL;
pathvar = getenv("PATH");
if (!pathvar) {
msg(STASIS_MSG_ERROR | STASIS_MSG_L2, "PATH variable is not set. Cannot continue.\n");
exit(1);
- } else {
- char pathvar_tmp[STASIS_BUFSIZ];
- sprintf(pathvar_tmp, "%s/bin:%s", ctx->storage.conda_install_prefix, pathvar);
- setenv("PATH", pathvar_tmp, 1);
- pathvar = NULL;
}
} \ No newline at end of file