File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -176,11 +176,17 @@ export default class PlatformIOCoreStage extends BaseStage {
176176 if ( this . useDevCore ( ) ) {
177177 scriptArgs . push ( '--dev' ) ;
178178 }
179- scriptArgs . push ( ...[ 'check' , 'core' , '--auto-upgrade' ] ) ;
180- scriptArgs . push ( ...[ '--dump-state' , stateJSONPath ] ) ;
179+ scriptArgs . push (
180+ ...[
181+ 'check' ,
182+ 'core' ,
183+ this . params . disableAutoUpdates ? '--no-auto-upgrade' : '--auto-upgrade' ,
184+ ]
185+ ) ;
181186 if ( this . params . pioCoreVersionSpec ) {
182187 scriptArgs . push ( ...[ '--version-spec' , this . params . pioCoreVersionSpec ] ) ;
183188 }
189+ scriptArgs . push ( ...[ '--dump-state' , stateJSONPath ] ) ;
184190 console . info ( await callInstallerScript ( await this . whereIsPython ( ) , scriptArgs ) ) ;
185191
186192 // Load PIO Core state
You can’t perform that action at this time.
0 commit comments