From 5a476fb39c688f02b033e235d0c2132c9f29da7d Mon Sep 17 00:00:00 2001 From: Nebojsa92 Date: Tue, 6 Oct 2020 16:13:42 +0200 Subject: [PATCH 1/2] Update cp.ts --- src/cp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cp.ts b/src/cp.ts index 8b312d67be..c13dcecae2 100644 --- a/src/cp.ts +++ b/src/cp.ts @@ -28,7 +28,7 @@ export class Cp { ): Promise { 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( From 9472154ce5452bb412c7e139f04ed8b641c34095 Mon Sep 17 00:00:00 2001 From: Nebojsa92 Date: Sun, 11 Oct 2020 12:34:33 +0200 Subject: [PATCH 2/2] Update cp_test.ts --- src/cp_test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cp_test.ts b/src/cp_test.ts index 72b78bd522..c6b5b06968 100644 --- a/src/cp_test.ts +++ b/src/cp_test.ts @@ -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 = {