We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9b1350 commit 50cf92bCopy full SHA for 50cf92b
src/LayerCache.ts
@@ -90,10 +90,9 @@ class LayerCache {
90
}
91
92
private async moveLayerTarsInDir(fromDir: string, toDir: string) {
93
- const fromDirTrailingSlash = fromDir.endsWith(`/`) ? fromDir : `${fromDir}/`
94
const layerTars = (await recursiveReaddir(fromDir))
95
.filter(path => path.endsWith(`/layer.tar`))
96
- .map(path => path.replace(fromDirTrailingSlash, ``))
+ .map(path => path.replace(`${fromDir}/`, ``))
97
98
const moveLayer = async (layer: string) => {
99
const from = path.resolve(`${fromDir}/${layer}`)
0 commit comments