File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -58,13 +58,13 @@ export class TempFileCleaner {
58
58
const maxAgeMinutes = this . opts . maxAgeMinutes ;
59
59
60
60
const ignoreStartingPoint = [ "!" , "-path" , startingPoint ] ;
61
- const onlyDirectDecendants = [ "-maxdepth" , "1" ] ;
61
+ const onlyDirectDescendants = [ "-maxdepth" , "1" ] ;
62
62
const onlyOldFiles = [ "-mmin" , `+${ maxAgeMinutes } ` ] ;
63
63
64
64
const baseArgs = [
65
65
startingPoint ,
66
66
...ignoreStartingPoint ,
67
- ...onlyDirectDecendants ,
67
+ ...onlyDirectDescendants ,
68
68
...onlyOldFiles ,
69
69
] ;
70
70
@@ -76,7 +76,7 @@ export class TempFileCleaner {
76
76
77
77
const duLines = duOutput . stdout . trim ( ) . split ( "\n" ) ;
78
78
const fileCount = duLines . length - 1 ; // last line is the total
79
- const fileSize = duLines . at ( - 1 ) ?. split ( "\t" ) [ 0 ] ;
79
+ const fileSize = duLines . at ( - 1 ) ?. trim ( ) . split ( / \s + / ) [ 0 ] ;
80
80
81
81
if ( fileCount === 0 ) {
82
82
this . logger . log ( "nothing to delete" , { startingPoint, maxAgeMinutes } ) ;
You can’t perform that action at this time.
0 commit comments