fix(striker-ui-api): remove 'os_list_' from key of OS

main
Tsu-ba-me 3 years ago
parent b553e880c9
commit 5325a4f7eb
  1. 2
      striker-ui-api/src/lib/request_handlers/anvil/buildQueryAnvilDetail.ts

@ -310,7 +310,7 @@ const buildQueryAnvilDetail = ({
); );
const osList = execSync( 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 }, { encoding: 'utf-8', timeout: 10000 },
).split('\n'); ).split('\n');

Loading…
Cancel
Save