removed need for sudo when creating a new project
This commit is contained in:
@@ -180,20 +180,6 @@ thing_t create_files(char *name) {
|
||||
void new_project(char *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(
|
||||
name,
|
||||
thing); // fills in stuff like the Makefile with some boilerplate text
|
||||
|
||||
Reference in New Issue
Block a user