removed need for sudo when creating a new project

This commit is contained in:
Odweta
2023-12-27 17:05:10 +01:00
parent 8ac4a0d584
commit 03aedb0b2a
-14
View File
@@ -180,20 +180,6 @@ thing_t create_files(char *name) {
void new_project(char *name) { void new_project(char *name) {
thing_t thing = create_files(name); thing_t thing = create_files(name);
char command[strlen("sudo chmod +w .//src/main.c -R") + strlen(name) + 1];
strcpy(command, "sudo chmod +w ./");
strcat(command, name);
strcat(command, "/src/main.c");
system(command);
char command2[strlen("sudo chmod +w .//**") + strlen(name) + 1];
strcpy(command2, "sudo chmod +w ./");
strcat(command2, name);
strcat(command2, "/**");
system(command2);
fill_in_files( fill_in_files(
name, name,
thing); // fills in stuff like the Makefile with some boilerplate text thing); // fills in stuff like the Makefile with some boilerplate text