Skip to content

Commit af05294

Browse files
committed
fix LayerCache#separateAllLayerCaches
1 parent 06655e4 commit af05294

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LayerCache.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class LayerCache {
6161
}
6262

6363
private async separateAllLayerCaches() {
64-
const layerTars = (await exec.exec(`find . -name layer.tar`, [], { cwd: this.getUnpackedTarDir()})).toString().split(`\n`)
64+
const layerTars = (await exec.exec(`find . -name layer.tar`, [], { cwd: this.getUnpackedTarDir()})).stdoutStr.split(`\n`)
6565
const moveLayer = async (layer: string) => {
6666
const from = `${this.getUnpackedTarDir()}/${layer}`
6767
const to = `${this.getLayerCachesDir()}/${layer}`
@@ -73,7 +73,7 @@ class LayerCache {
7373
}
7474

7575
private async joinAllLayerCaches() {
76-
const layerTars = (await exec.exec(`find . -name layer.tar`, [], { cwd: this.getLayerCachesDir()})).toString().split(`\n`)
76+
const layerTars = (await exec.exec(`find . -name layer.tar`, [], { cwd: this.getLayerCachesDir()})).stdoutStr.split(`\n`)
7777
const moveLayer = async (layer: string) => {
7878
const from = `${this.getLayerCachesDir()}/${layer}`
7979
const to = `${this.getUnpackedTarDir()}/${layer}`

0 commit comments

Comments
 (0)