Skip to content

Commit

Permalink
forgot that
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro-Salerno committed Nov 7, 2024
1 parent 2823928 commit b9e933c
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/common/cli/directives/commands/remove.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@
#include "tm-mem.h"

int cli_cmd_remove(cli_info_t info) {
int ret = EXIT_FAILURE;
const char *pkg_name = info.input;
char *pkg_path = NULL;
const char *artifact_path = NULL;
int ret = EXIT_FAILURE;
const char *pkg_name = info.input;
char *pkg_path = NULL;
const char *artifact_path = NULL;
recipe_t recipe_artifact = {0};

if (NULL == pkg_name) {
cli_out_error("You must specify a package name for it to be removed. Use "
Expand Down Expand Up @@ -77,8 +78,6 @@ int cli_cmd_remove(cli_info_t info) {
goto cleanup;
}

recipe_t recipe_artifact = {0};

if (0 != os_fs_path_dyconcat(
(char **)&artifact_path, 2, pkg_path, "recipe.tarman") &&
pkg_parse_tmrcp(&recipe_artifact, artifact_path)) {
Expand Down

0 comments on commit b9e933c

Please sign in to comment.