Skip to content

Commit d387d37

Browse files
sachiniyermstruebing
authored andcommitted
fix: cp from pod was broken
1 parent 2d16e0b commit d387d37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cp_test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe('Cp', () => {
2222
const container = 'container';
2323
const srcPath = '/';
2424
const tgtPath = '/';
25-
const cmdArray = ['tar', 'zcf', '-', srcPath];
25+
const cmdArray = ['tar', 'cf', '-', srcPath];
2626
const path = `/api/v1/namespaces/${namespace}/pods/${pod}/exec`;
2727

2828
const query = {
@@ -51,7 +51,7 @@ describe('Cp', () => {
5151
const srcPath = '/';
5252
const tgtPath = '/';
5353
const cwd = '/abc';
54-
const cmdArray = ['tar', 'zcf', '-', '-C', cwd, srcPath];
54+
const cmdArray = ['tar', 'cf', '-', '-C', cwd, srcPath];
5555
const path = `/api/v1/namespaces/${namespace}/pods/${pod}/exec`;
5656

5757
const query = {

0 commit comments

Comments
 (0)