Skip to content

Commit 637b280

Browse files
authored
Removed sudo for snap
1 parent 4891d4a commit 637b280

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

snap-bin/createstructure.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,8 @@ void login()
407407
sprintf(execution_string, "sudo echo 'token=%s%s\norganization_name=%s\nignore=%s' > /etc/createstructure.conf", TEMP_TOKEN, TEMP_TOKEN_AUTO, TEMP_ORGANIZATION_NAME, TEMP_IGNORE);
408408
#endif // UBUNTU
409409
#ifdef SNAP
410-
//sprintf(execution_string, "sudo echo 'token=%s%s\nsources=%s\norganization_name=%s\nignore=%s' > /etc/createstructure.conf", TEMP_TOKEN, TEMP_TOKEN_AUTO, TEMP_SOURCES, TEMP_ORGANIZATION_NAME, TEMP_IGNORE);
411-
sprintf(execution_string, "sudo echo 'token=%s%s\norganization_name=%s\nignore=%s' > ~/createstructure.conf", TEMP_TOKEN, TEMP_TOKEN_AUTO, TEMP_ORGANIZATION_NAME, TEMP_IGNORE);
410+
//sprintf(execution_string, "echo 'token=%s%s\nsources=%s\norganization_name=%s\nignore=%s' > /etc/createstructure.conf", TEMP_TOKEN, TEMP_TOKEN_AUTO, TEMP_SOURCES, TEMP_ORGANIZATION_NAME, TEMP_IGNORE);
411+
sprintf(execution_string, "echo 'token=%s%s\norganization_name=%s\nignore=%s' > ~/createstructure.conf", TEMP_TOKEN, TEMP_TOKEN_AUTO, TEMP_ORGANIZATION_NAME, TEMP_IGNORE);
412412
#endif // SNAP
413413
#ifdef WINDOWS
414414
//sprintf(execution_string, "echo token=%s%s > %HOMEDRIVE%\\Progra~1\\createstructure\\createstructure.conf && echo sources=%s >> %HOMEDRIVE%\\Progra~1\\createstructure\\createstructure.conf && echo organization_name=%s >> %HOMEDRIVE%\\Progra~1\\createstructure\\createstructure.conf && echo ignore=%s >> %HOMEDRIVE%\\Progra~1\\createstructure\\createstructure.conf", TEMP_TOKEN, TEMP_TOKEN_AUTO, TEMP_SOURCES, TEMP_ORGANIZATION_NAME, TEMP_IGNORE);
@@ -418,16 +418,16 @@ void login()
418418
system(execution_string);
419419

420420
if (verbose)
421-
printf("%s", "Configuration saved");
421+
printf("%s\n", "Configuration saved");
422422

423423

424424
if (verbose)
425-
printf("%s", "Installing external packages");
425+
printf("%s\n", "Installing external packages");
426426

427-
system("pip3 -q install createstructure");
427+
system("pip -q install createstructure==7.6");
428428

429429
if (verbose)
430-
printf("%s", "External packages installed");
430+
printf("%s\n", "External packages installed");
431431
}
432432

433433
void createstructure()

0 commit comments

Comments
 (0)