updates
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
/** Shared helpers for drive-resident /bin scripts (prepended before each command). */
|
||||
function bareStdin(ctx) {
|
||||
return typeof ctx.shellStdin === 'string' ? ctx.shellStdin : ''
|
||||
}
|
||||
|
||||
async function run(ctx, argv) {
|
||||
const h =
|
||||
globalThis.process?.env?.HOSTNAME ||
|
||||
globalThis.process?.env?.COMPUTERNAME ||
|
||||
ctx.vfs.env.HOSTNAME ||
|
||||
'bare-os'
|
||||
ctx.console.log(h)
|
||||
}
|
||||
Reference in New Issue
Block a user