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:
parent
a83c153531
commit
899c183c5c
@ -194,7 +194,12 @@ async function installBun() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Run the installation
|
// Run the installation
|
||||||
installBun().catch((error) => {
|
installBun()
|
||||||
|
.then(() => {
|
||||||
|
console.log('Installation successful')
|
||||||
|
process.exit(0)
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
console.error('Installation failed:', error)
|
console.error('Installation failed:', error)
|
||||||
process.exit(1)
|
process.exit(1)
|
||||||
})
|
})
|
||||||
|
|||||||
@ -204,7 +204,12 @@ async function installUv() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Run the installation
|
// Run the installation
|
||||||
installUv().catch((error) => {
|
installUv()
|
||||||
|
.then(() => {
|
||||||
|
console.log('Installation successful')
|
||||||
|
process.exit(0)
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
console.error('Installation failed:', error)
|
console.error('Installation failed:', error)
|
||||||
process.exit(1)
|
process.exit(1)
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user