aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmd-version.c
diff options
context:
space:
mode:
authorLibravatar bigfoot547 <[email protected]>2024-01-09 04:27:18 -0600
committerLibravatar bigfoot547 <[email protected]>2024-01-09 04:27:18 -0600
commit82ceaa4680ee1a626effb6008ba605a10da07468 (patch)
tree90fff79a9857be692fd7a991f97660b672b8129c /src/cmd-version.c
parentfinish the runtime stuff (buggy maybe) (diff)
actually use runtime
Diffstat (limited to 'src/cmd-version.c')
-rw-r--r--src/cmd-version.c7
1 files changed, 6 insertions, 1 deletions
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;