git ssb

0+

cel-desktop / ssb-pkg



Tree: cfc8d49135488f7554210234b3a503c2dbd6c6a5

Files: cfc8d49135488f7554210234b3a503c2dbd6c6a5 / lib / bin.js

460 bytesRaw
1#!/usr/bin/env node
2
3import { exec } from './index.js';
4import { log } from './log.js';
5
6async function main () {
7 if (process.env.CHDIR &&
8 process.env.CHDIR !== process.cwd()) {
9 // allow to override cwd by CHDIR env var
10 // https://github.com/resin-io/etcher/pull/1713
11 process.chdir(process.env.CHDIR);
12 }
13
14 await exec(process.argv.slice(2));
15}
16
17main().catch((error) => {
18 if (!error.wasReported) log.error(error);
19 process.exit(2);
20});
21

Built with git-ssb-web