"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const shelljs_1 = __importDefault(require("shelljs"));
const exec = (cmd, fatal = true) => {
    console.log(`$ ${cmd}`);
    const res = shelljs_1.default.exec(cmd);
    if (res.code !== 0) {
        console.error("Error: Command failed with code", res.code);
        console.log(res);
        if (fatal) {
            process.exit(1);
        }
    }
    return res;
};
exec("chmod +x ./scripts/docker-setup.sh");
exec("./scripts/docker-setup.sh");
//# sourceMappingURL=setup-parachain-docker.js.map