Skip to content

Commit c1d88ce

Browse files
committed
fix(shell): create prints id even when non detached
Since create does not start the container, it should print the id of the created container, even when it is non-detached. Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
1 parent 3c3e24f commit c1d88ce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/shell/container/create.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ int cmd_container_create_run(struct ocre_context *ctx, const char *argv0, int ar
230230
}
231231
}
232232

233-
if (detached) {
233+
if (detached || !strcmp(argv[0], "create")) {
234234
const char *cid = ocre_container_get_id(container);
235235

236236
fprintf(stdout, "%s\n", cid);

0 commit comments

Comments
 (0)