Update home/.local/bin/installx

Update home/.local/bin/package.json
This commit is contained in:
Brian Zalewski 2024-09-02 21:42:08 -04:00
parent 8506758400
commit 055d49e0f3
2 changed files with 6 additions and 3 deletions

View file

@ -1,5 +1,6 @@
#!/usr/bin/env zx
import osInfo from 'linux-os-info'
import parallelLimit from 'async/parallelLimit'
$.verbose = false
// Preserves color from subshells
@ -387,7 +388,8 @@ async function installPackages(pkgInstructions) {
}
log(`Performing ${promises.length} installations`)
process.env.DEBUG && console.log('Queued installs:', promises)
const installs = await Promise.allSettled(promises)
# const installs = await Promise.allSettled(promises)
const installs = await prallelLimit(promises, 5)
log(`All of the installations have finished`)
process.env.DEBUG && console.log('Completed installs:', installs)
await postInstall(combined)

View file

@ -12,6 +12,7 @@
"author": "",
"license": "MIT",
"dependencies": {
"linux-os-info": "2.0.0"
"linux-os-info": "2.0.0",
"async": "3.2.6"
}
}