Compare commits

...

1 Commits

Author SHA1 Message Date
Josh Gross 7527073910 Test sudo tar 2019-12-27 11:48:00 -05:00
3 changed files with 10509 additions and 1 deletions

5266
dist/restore/index.js vendored Normal file

File diff suppressed because it is too large Load Diff

5240
dist/save/index.js vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@ -16,7 +16,9 @@ async function getTarPath(): Promise<string> {
async function execTar(args: string[]): Promise<void> {
try {
await exec(`"${await getTarPath()}"`, args);
const tarPath = await getTarPath();
const tarExec = process.platform !== "win32" ? `sudo ${tarPath}` : tarPath;
await exec(`"${tarExec}"`, args);
} catch (error) {
const IS_WINDOWS = process.platform === "win32";
if (IS_WINDOWS) {