Skip to content

Commit

Permalink
Apply EXTRACT_FILES_PREVENT_FILE_OVERWRITE to tarExtract
Browse files Browse the repository at this point in the history
  • Loading branch information
TFleury committed Oct 24, 2019
1 parent cc28bd0 commit 332ff4d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Tasks/ExtractFilesV1/extractfilestask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,11 @@ function tarExtract(file, destinationFolder) {
xpTarLocation = tl.which('tar', true);
}
var tar = tl.tool(xpTarLocation);
tar.arg('-xvf'); // tar will correctly handle compression types outlined in isTar()
tar.arg('-xv'); // tar will correctly handle compression types outlined in isTar()
if (preventFileOverwrite) {
tar.arg('-k');
}
tar.arg('-f');
tar.arg(file);
tar.arg('-C');
tar.arg(destinationFolder);
Expand Down

0 comments on commit 332ff4d

Please sign in to comment.