Skip to content

Commit 5f9455f

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 4ba87fe commit 5f9455f

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
@@ -227,7 +227,7 @@ int cmd_container_create_run(struct ocre_context *ctx, const char *argv0, int ar
227227
}
228228
}
229229

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

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

0 commit comments

Comments
 (0)