Skip to content

Commit

Permalink
fixed uninstall
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksArt000 committed Oct 31, 2023
1 parent 0080662 commit 72d063e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/uninstall.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,8 @@ int uninstall(char* name)
char* SPM_DIR = getenv("SOVIET_SPM_DIR");

// Generate the path to the package's SPM file
char dataSpmPath[MAX_PATH];
// Use the default format to generate the path
// Note: The variable DEFAULT_FORMAT is not defined; you may need to replace it with the correct environment variable or value.
// For example, you can use getenv("SOVIET_DEFAULT_FORMAT") or replace it with a string.
// getenv("DEFAULT_FORMAT");
char* dataSpmPath[MAX_PATH];
sprintf(dataSpmPath, "%s/%s.%s", getenv("SOVIET_SPM_DIR"), name, getenv("SOVIET_DEFAULT_FORMAT"));

// Verify if the package is installed
dbg(3, "Verifying if the package is installed at %s", dataSpmPath);
Expand Down

0 comments on commit 72d063e

Please sign in to comment.