Update home/.local/bin/installx

Update home/.local/bin/package.json
This commit is contained in:
Brian Zalewski 2024-09-02 22:23:45 -04:00
parent 5e08fa185b
commit 10d0934bb3
2 changed files with 8 additions and 5 deletions

View file

@ -1,6 +1,5 @@
#!/usr/bin/env zx
import osInfo from 'linux-os-info';
import parallelLimit from 'async-es/parallelLimit';
import osInfo from 'linux-os-info'
$.verbose = false
// Preserves color from subshells
@ -389,7 +388,12 @@ 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 prallelLimit(promises, 5)
let installs
promises.forEach((p) => {
installs.push(await p)
})
log(`All of the installations have finished`)
process.env.DEBUG && console.log('Completed installs:', installs)
await postInstall(combined)

View file

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