MCPcopy Create free account
hub / github.com/abusoww/tuxmate / appendScripts

Function appendScripts

src/hooks/useLinuxInit.ts:222–226  ·  view source on GitHub ↗
(cmd: string)

Source from the content-addressed store, hash-verified

220 };
221
222 const appendScripts = (cmd: string) => {
223 if (scriptPkgs.length === 0) return cmd;
224 const scriptsStr = scriptPkgs.join(' && ');
225 return cmd ? `${cmd} && ${scriptsStr}` : scriptsStr;
226 };
227
228 if (packageNames.length === 0 && extras.length === 0 && scriptPkgs.length === 0) {
229 return '# No packages selected';

Callers 1

useLinuxInitFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected