Skip to content

Commit

Permalink
feat: allow to tar files from root
Browse files Browse the repository at this point in the history
  • Loading branch information
blaggacao committed Dec 7, 2022
1 parent 819157b commit 98c01ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cache/src/internal/tar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async function execTar(
cwd?: string
): Promise<void> {
try {
await exec(`"${await getTarPath(args, compressionMethod)}"`, args, {cwd})
await exec(`sudo ${await getTarPath(args, compressionMethod)}`, args, {cwd})
} catch (error) {
throw new Error(`Tar failed with error: ${error?.message}`)
}
Expand Down

0 comments on commit 98c01ee

Please sign in to comment.