fix(striker-ui-api): add date to shell

main
Tsu-ba-me 2 years ago
parent 43d7662c4d
commit 76e5f5f925
  1. 1
      striker-ui-api/src/lib/consts/SERVER_PATHS.ts
  2. 3
      striker-ui-api/src/lib/shell.ts

@ -9,6 +9,7 @@ const EMPTY_SERVER_PATHS: ServerPath = {
tmp: {}, tmp: {},
usr: { usr: {
bin: { bin: {
date: {},
mkfifo: {}, mkfifo: {},
rm: {}, rm: {},
sed: {}, sed: {},

@ -21,6 +21,9 @@ const systemCall = (
return stdout; return stdout;
}; };
export const date = (...args: string[]) =>
systemCall(SERVER_PATHS.usr.bin.date.self, args);
export const mkfifo = (...args: string[]) => export const mkfifo = (...args: string[]) =>
systemCall(SERVER_PATHS.usr.bin.mkfifo.self, args); systemCall(SERVER_PATHS.usr.bin.mkfifo.self, args);

Loading…
Cancel
Save