Some checks are pending
offline / test (push) Waiting to run
Restarts crashed units unless the admin console paused or stopped them. Fleet writes per-instance intent.json. Tested on 138: crash-restart, pause-hold, watch respawn of keep.
9 lines
231 B
JavaScript
9 lines
231 B
JavaScript
import os from 'node:os';
|
|
import path from 'node:path';
|
|
|
|
export function expandHome(p) {
|
|
if (!p) return p;
|
|
if (p === '~') return os.homedir();
|
|
if (p.startsWith('~/')) return path.join(os.homedir(), p.slice(2));
|
|
return p;
|
|
}
|