File tree Expand file tree Collapse file tree
apps/pythinker-code/src/cli/sub Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ export async function handleUpgrade(
8989
9090 const source = await deps . detectInstallSource ( ) . catch ( ( ) => 'unsupported' as const ) ;
9191 const installCommand = installCommandFor ( source , target . version , deps . platform ) ;
92- if ( ! canAutoInstall ( source , deps . platform ) || ( ! deps . yes && ! deps . isInteractive ) ) {
92+ if ( ! canAutoInstall ( source , deps . platform ) ) {
9393 trackUpgradeEvent ( deps . track , 'upgrade_command_manual_command' , {
9494 current_version : currentVersion ,
9595 target_version : target . version ,
@@ -104,7 +104,7 @@ export async function handleUpgrade(
104104 return 0 ;
105105 }
106106
107- if ( ! deps . yes ) {
107+ if ( ! deps . yes && deps . isInteractive ) {
108108 trackUpgradeEvent ( deps . track , 'upgrade_command_prompted' , {
109109 current_version : currentVersion ,
110110 target_version : target . version ,
You can’t perform that action at this time.
0 commit comments