Skip to content

Commit 5ffbffb

Browse files
committed
Fix There was an error when attempting to execute the process '/usr/bin/find'.
This may indicate the process failed to start. Error: spawn /usr/bin/find ENOENT
1 parent 1facf52 commit 5ffbffb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/LayerCache.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ class LayerCache {
9292
}
9393

9494
private async moveLayerTarsInDir(fromDir: string, toDir: string) {
95-
const layerTars = (await exec.exec(`find . -name layer.tar`, [], { cwd: fromDir, silent: true })).stdoutStr.split(`\n`).filter(tar => tar !== '')
95+
const layerTars = (await fs.readdir(fromDir)).filter(path => path.endsWith(`/layer.tar`))
96+
9697
const moveLayer = async (layer: string) => {
9798
const from = path.resolve(`${fromDir}/${layer}`)
9899
const to = path.resolve(`${toDir}/${layer}`)

0 commit comments

Comments
 (0)