Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/cp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class Cp {
): Promise<void> {
const tmpFile = tmp.fileSync();
const tmpFileName = tmpFile.name;
const command = ['tar', 'cf', '-', srcPath];
const command = ['tar', 'zcf', '-', srcPath];
const writerStream = fs.createWriteStream(tmpFileName);
const errStream = new WritableStreamBuffer();
this.execInstance.exec(
Expand Down
2 changes: 1 addition & 1 deletion src/cp_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('Cp', () => {
const container = 'container';
const srcPath = '/';
const tgtPath = '/';
const cmdArray = ['tar', 'cf', '-', srcPath];
const cmdArray = ['tar', 'zcf', '-', srcPath];
const path = `/api/v1/namespaces/${namespace}/pods/${pod}/exec`;

const query = {
Expand Down