Skip to content

Commit

Permalink
just untabify
Browse files Browse the repository at this point in the history
  • Loading branch information
AllinCottrell committed Dec 19, 2024
1 parent 2365d5c commit bd95baa
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions gui/osx_env.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,20 @@ void osx_setup_paths (void)
/* R shared library: may require platform-specific symlink */
rhome = getenv("R_HOME");
if (rhome == NULL) {
setenv("R_HOME", "/Library/Frameworks/R.framework/Resources", 1);
setenv("R_HOME", "/Library/Frameworks/R.framework/Resources", 1);
}

/* Add ourselves to PATH? */
if (1) {
char *path0 = getenv("PATH");
char *path0 = getenv("PATH");

if (path0 != NULL && *path0 != '\0') {
tmp = g_strdup_printf("%s:%s/bin", path0, respath);
} else {
tmp = g_strdup_printf("%s/bin", respath);
}
setenv("PATH", tmp, 1);
g_free(tmp);
if (path0 != NULL && *path0 != '\0') {
tmp = g_strdup_printf("%s:%s/bin", path0, respath);
} else {
tmp = g_strdup_printf("%s/bin", respath);
}
setenv("PATH", tmp, 1);
g_free(tmp);
}

g_free(respath);
Expand Down

0 comments on commit bd95baa

Please sign in to comment.