git ssb

0+

cel-desktop / ssb-pkg



Tree: 1eb144e388da5f1a3466703f56ac4ab591d700fc

Files: 1eb144e388da5f1a3466703f56ac4ab591d700fc / 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