From 5325a4f7eb8c6b17139347b6901ee9fabb66e6ea Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Fri, 13 May 2022 19:04:10 -0400 Subject: [PATCH] fix(striker-ui-api): remove 'os_list_' from key of OS --- .../src/lib/request_handlers/anvil/buildQueryAnvilDetail.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/striker-ui-api/src/lib/request_handlers/anvil/buildQueryAnvilDetail.ts b/striker-ui-api/src/lib/request_handlers/anvil/buildQueryAnvilDetail.ts index ca26abd6..e10cd269 100644 --- a/striker-ui-api/src/lib/request_handlers/anvil/buildQueryAnvilDetail.ts +++ b/striker-ui-api/src/lib/request_handlers/anvil/buildQueryAnvilDetail.ts @@ -310,7 +310,7 @@ const buildQueryAnvilDetail = ({ ); const osList = execSync( - `${SERVER_PATHS.usr.sbin['striker-parse-os-list'].self} | ${SERVER_PATHS.usr.bin['sed'].self} -E 's/^.*name="([^"]+).*CDATA[[]([^]]+).*$/\\1,\\2/'`, + `${SERVER_PATHS.usr.sbin['striker-parse-os-list'].self} | ${SERVER_PATHS.usr.bin['sed'].self} -E 's/^.*name="os_list_([^"]+).*CDATA[[]([^]]+).*$/\\1,\\2/'`, { encoding: 'utf-8', timeout: 10000 }, ).split('\n');