refactor: improve installation scripts for bun and uv with success logging

- Updated the installation scripts for bun and uv to log success messages upon successful completion.
- Enhanced error handling to maintain existing functionality while providing clearer feedback during installation.
This commit is contained in:
kangfenmao 2025-03-17 17:38:37 +08:00
parent a83c153531
commit 899c183c5c
2 changed files with 18 additions and 8 deletions

View File

@ -194,7 +194,12 @@ async function installBun() {
}
// Run the installation
installBun().catch((error) => {
console.error('Installation failed:', error)
process.exit(1)
})
installBun()
.then(() => {
console.log('Installation successful')
process.exit(0)
})
.catch((error) => {
console.error('Installation failed:', error)
process.exit(1)
})

View File

@ -204,7 +204,12 @@ async function installUv() {
}
// Run the installation
installUv().catch((error) => {
console.error('Installation failed:', error)
process.exit(1)
})
installUv()
.then(() => {
console.log('Installation successful')
process.exit(0)
})
.catch((error) => {
console.error('Installation failed:', error)
process.exit(1)
})