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 3232 - run : npm ci
3333 - run : npx tsx scripts/cleanup-github-actions.ts
3434
35- - name : Setup tmate session
36- uses : mxschmitt/action-tmate@v3
35+ # - name: Setup tmate session
36+ # uses: mxschmitt/action-tmate@v3
3737
38- - run : npm run test -- ./test --no-file-parallelism --disable-console-intercept
38+ - run : npm run test -- ./test/aws-cli --no-file-parallelism --silent=passed-only
Original file line number Diff line number Diff line change @@ -14,4 +14,5 @@ await testSpawn('rustup self uninstall -y');
1414
1515await testSpawn ( 'rm -rf /usr/bin/go' , { requiresRoot : true } )
1616await testSpawn ( 'rm -rf /usr/bin/python' , { requiresRoot : true } )
17+ await testSpawn ( 'rm -rf /usr/bin/python3' , { requiresRoot : true } )
1718await testSpawn ( 'rm -rf /usr/bin/ruby' , { requiresRoot : true } )
Original file line number Diff line number Diff line change @@ -109,9 +109,17 @@ softwareupdate --install-rosetta
109109 return ;
110110 }
111111
112- await $ . spawnSafe ( `rm ${ installLocation } ` , { requiresRoot : true } ) ;
113- await $ . spawnSafe ( `rm ${ installLocation } _completer` , { requiresRoot : true } ) ;
114- await $ . spawnSafe ( 'rm -rf $HOME/.aws/' ) ;
112+ if ( Utils . isLinux ( ) ) {
113+ // 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 } ) ;
116+
117+ // Remove the install directory (always /usr/local/aws-cli for the standalone installer)
118+ await $ . spawnSafe ( 'rm -rf /usr/local/aws-cli' , { requiresRoot : true } ) ;
119+ } else {
120+ await $ . spawnSafe ( `rm ${ installLocation } ` , { requiresRoot : true } ) ;
121+ await $ . spawnSafe ( `rm ${ installLocation } _completer` , { requiresRoot : true } ) ;
122+ }
115123 }
116124
117125 private async findInstallLocation ( ) : Promise < null | string > {
You can’t perform that action at this time.
0 commit comments