"use strict";
/**
 * penguins-eggs
 * krill modules: unpackfs.ts
 * author: Piero Proietti
 * email: piero.proietti@gmail.com
 * license: MIT
 * https://stackoverflow.com/questions/23876782/how-do-i-split-a-typescript-class-into-multiple-files
 */
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const utils_1 = tslib_1.__importDefault(require("../../classes/utils"));
const utils_2 = require("../../lib/utils");
/**
* unpackfs
*/
async function unpackfs() {
    // const cmd = `unsquashfs -d ${this.installTarget} -f ${this.distro.liveMediumPath}`
    const cmd = `unsquashfs -d ${this.installTarget} -f ${this.distro.liveMediumPath}${this.distro.squashfs}`;
    const echoYes = utils_1.default.setEcho(true);
    await (0, utils_2.exec)(cmd, echoYes);
}
exports.default = unpackfs;
