mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 12:33:40 +00:00
Run prettier across sdk/base and sdk/package to apply the standardized quote style (single quotes matching web).
9 lines
221 B
TypeScript
9 lines
221 B
TypeScript
import { arrayOf, string } from 'ts-matches'
|
|
|
|
export const splitCommand = (
|
|
command: string | [string, ...string[]],
|
|
): string[] => {
|
|
if (arrayOf(string).test(command)) return command
|
|
return ['sh', '-c', command]
|
|
}
|