Skip to content

Commit

Permalink
fixed stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksArt000 committed Nov 1, 2023
1 parent b18651e commit 785dd02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,16 @@ void init() {
// Verify if required directories exist, and create them if not
struct stat st = {0};
if (stat(getenv("ROOT"), &st) == -1) {
mkdir(getenv("SOVIET_ROOT"), 0777);
mkdir(getenv("ROOT"), 0777);
}
if (stat(getenv("MAIN_DIR"), &st) == -1) {
mkdir(getenv("SOVIET_MAIN_DIR"), 0777);
mkdir(getenv("MAIN_DIR"), 0777);
}
if (stat(getenv("SOVIET_DATA_DIR"), &st) == -1) {
mkdir(getenv("SOVIET_DATA_DIR"), 0777);
}
if (stat(getenv("WORK_DIR"), &st) == -1) {
mkdir(getenv("SOVIET_WORK_DIR"), 0777);
mkdir(getenv("WORK_DIR"), 0777);
}
if (stat(getenv("SOVIET_SPM_DIR"), &st) == -1) {
mkdir(getenv("SOVIET_SPM_DIR"), 0777);
Expand Down
2 changes: 1 addition & 1 deletion src/move.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void move_binaries(char** locations, long loc_size) {
// Iterate through locations and move the binaries to their correct locations
for (int i = 0; i < loc_size; i++) {
char dest_loc[PATH_MAX];
sprintf(dest_loc, "%s/%s", getenv("SOVIET_ROOT"), locations[i]);
sprintf(dest_loc, "%s/%s", getenv("ROOT"), locations[i]);
char build_loc[PATH_MAX];
sprintf(build_loc, "%s/%s", getenv("SOVIET_BUILD_DIR"), locations[i]);

Expand Down

0 comments on commit 785dd02

Please sign in to comment.