From 82ceaa4680ee1a626effb6008ba605a10da07468 Mon Sep 17 00:00:00 2001 From: bigfoot547 Date: Tue, 9 Jan 2024 04:27:18 -0600 Subject: actually use runtime --- src/cmd-version.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/cmd-version.c') diff --git a/src/cmd-version.c b/src/cmd-version.c index fc9b7a8..5796a72 100644 --- a/src/cmd-version.c +++ b/src/cmd-version.c @@ -45,10 +45,15 @@ unsigned cmd_version_list_local(struct l2_context_node *ctx, char **args) json_dumpf(manifest, stdout, JSON_INDENT(4)); putchar('\n'); - if (l2_runtime_install_component(manifest, "jre-legacy") < 0) { + char *jrepath = NULL; + + if (l2_runtime_install_component(manifest, "jre-legacy", &jrepath) < 0) { CMD_FATAL0("Failed to install component"); } + CMD_DEBUG("JRE path: %s", jrepath); + + free(jrepath); json_decref(manifest); return CMD_RESULT_SUCCESS; -- cgit v1.2.3-70-g09d2