File tree Expand file tree Collapse file tree
src/resources/aws-cli/cli Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -104,21 +104,24 @@ softwareupdate --install-rosetta
104104 return ;
105105 }
106106
107- if ( installLocation . includes ( 'homebrew' ) ) {
108- await $ . spawn ( 'brew uninstall awscli' , { interactive : true , env : { HOMEBREW_NO_AUTO_UPDATE : 1 } } ) ;
109- return ;
110- }
107+ // if (installLocation.includes('homebrew')) {
108+ // await $.spawn('brew uninstall awscli', { interactive: true, env: { HOMEBREW_NO_AUTO_UPDATE: 1 } });
109+ // return;
110+ // }
111111
112112 if ( Utils . isLinux ( ) ) {
113113 // Remove symlinks from bin dir
114- await $ . spawnSafe ( ' rm -f /usr/local/bin/aws' , { requiresRoot : true } ) ;
115- await $ . spawnSafe ( ' rm -f /usr/local/bin/aws_completer' , { requiresRoot : true } ) ;
114+ await $ . spawnSafe ( ` rm -f ${ installLocation } ` , { requiresRoot : true } ) ;
115+ await $ . spawnSafe ( ` rm -f ${ installLocation } _completer` , { requiresRoot : true } ) ;
116116
117117 // Remove the install directory (always /usr/local/aws-cli for the standalone installer)
118118 await $ . spawnSafe ( 'rm -rf /usr/local/aws-cli' , { requiresRoot : true } ) ;
119119 } else {
120120 await $ . spawnSafe ( `rm ${ installLocation } ` , { requiresRoot : true } ) ;
121121 await $ . spawnSafe ( `rm ${ installLocation } _completer` , { requiresRoot : true } ) ;
122+
123+ // Remove the install directory (always /usr/local/aws-cli for the standalone installer)
124+ await $ . spawnSafe ( 'rm -rf /usr/local/aws-cli' , { requiresRoot : true } ) ;
122125 }
123126 }
124127
You can’t perform that action at this time.
0 commit comments