File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -57,16 +57,20 @@ public override async Task RunAsync(BuildContext context)
57
57
58
58
void DeleteToolStore ( BuildContext context , string path )
59
59
{
60
- if ( System . IO . Directory . Exists ( path ) ) {
61
- var store = System . IO . Path . Combine ( path , ".store" ) ;
62
- if ( System . IO . Directory . Exists ( store ) ) {
60
+ if ( System . IO . Directory . Exists ( path ) )
61
+ {
62
+ var store = System . IO . Path . Combine ( path , ".store" ) ;
63
+ if ( System . IO . Directory . Exists ( store ) )
64
+ {
63
65
context . Log . Information ( $ "Deleting: { store } ") ;
64
66
System . IO . Directory . Delete ( store , recursive : true ) ;
65
- foreach ( var file in System . IO . Directory . GetFiles ( path , "mgcb-*" , System . IO . SearchOption . TopDirectoryOnly ) ) {
67
+ foreach ( var file in System . IO . Directory . GetFiles ( path , "mgcb-*" , System . IO . SearchOption . TopDirectoryOnly ) )
68
+ {
66
69
context . Log . Information ( $ "Deleting: { file } ") ;
67
70
System . IO . File . Delete ( file ) ;
68
71
}
69
- foreach ( var file in System . IO . Directory . GetFiles ( path , "tools_version.txt" , System . IO . SearchOption . TopDirectoryOnly ) ) {
72
+ foreach ( var file in System . IO . Directory . GetFiles ( path , "tools_version.txt" , System . IO . SearchOption . TopDirectoryOnly ) )
73
+ {
70
74
context . Log . Information ( $ "Deleting: { file } ") ;
71
75
System . IO . File . Delete ( file ) ;
72
76
}
You can’t perform that action at this time.
0 commit comments