gx
chenyc
2025-06-12 7b72ac13a83764a662159d4a49b7fffb90476ecb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env node
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const index_1 = require("./index");
const log_1 = require("./log");
async function main() {
    if (process.env.CHDIR && process.env.CHDIR !== process.cwd()) {
        // allow to override cwd by CHDIR env var
        // https://github.com/resin-io/etcher/pull/1713
        process.chdir(process.env.CHDIR);
    }
    await (0, index_1.exec)(process.argv.slice(2));
}
main().catch((error) => {
    if (!error.wasReported)
        log_1.log.error(error);
    process.exit(2);
});
//# sourceMappingURL=bin.js.map