File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -60,15 +60,15 @@ class LayerCache {
6060 }
6161
6262 private async separateAllLayerCaches ( ) {
63- await this . moveLayerTars ( this . getUnpackedTarDir ( ) , this . getLayerCachesDir ( ) )
63+ await this . moveLayerTarsInDir ( this . getUnpackedTarDir ( ) , this . getLayerCachesDir ( ) )
6464 }
6565
6666 private async joinAllLayerCaches ( ) {
67- await this . moveLayerTars ( this . getLayerCachesDir ( ) , this . getUnpackedTarDir ( ) )
67+ await this . moveLayerTarsInDir ( this . getLayerCachesDir ( ) , this . getUnpackedTarDir ( ) )
6868 }
6969
70- private async moveLayerTars ( fromDir : string , toDir : string ) {
71- const layerTars = ( await exec . exec ( `find . -name layer.tar` , [ ] , { cwd : fromDir } ) ) . stdoutStr . split ( `\n` )
70+ private async moveLayerTarsInDir ( fromDir : string , toDir : string ) {
71+ const layerTars = ( await exec . exec ( `find . -name layer.tar` , [ ] , { cwd : fromDir } ) ) . stdoutStr . split ( `\n` ) . filter ( tar => tar !== '' )
7272 const moveLayer = async ( layer : string ) => {
7373 const from = path . resolve ( `${ fromDir } /${ layer } ` )
7474 const to = path . resolve ( `${ toDir } /${ layer } ` )
You can’t perform that action at this time.
0 commit comments