File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export class Cp {
28
28
) : Promise < void > {
29
29
const tmpFile = tmp . fileSync ( ) ;
30
30
const tmpFileName = tmpFile . name ;
31
- const command = [ 'tar' , 'cf ' , '-' , srcPath ] ;
31
+ const command = [ 'tar' , 'zcf ' , '-' , srcPath ] ;
32
32
const writerStream = fs . createWriteStream ( tmpFileName ) ;
33
33
const errStream = new WritableStreamBuffer ( ) ;
34
34
this . execInstance . exec (
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ describe('Cp', () => {
21
21
const container = 'container' ;
22
22
const srcPath = '/' ;
23
23
const tgtPath = '/' ;
24
- const cmdArray = [ 'tar' , 'cf ' , '-' , srcPath ] ;
24
+ const cmdArray = [ 'tar' , 'zcf ' , '-' , srcPath ] ;
25
25
const path = `/api/v1/namespaces/${ namespace } /pods/${ pod } /exec` ;
26
26
27
27
const query = {
You can’t perform that action at this time.
0 commit comments