Update home/.local/bin/installx
Update home/.local/bin/package.json
This commit is contained in:
parent
70bf474f0a
commit
d27348122c
2 changed files with 5 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
||||||
#!/usr/bin/env zx
|
#!/usr/bin/env zx
|
||||||
import osInfo from 'linux-os-info'
|
import osInfo from 'linux-os-info'
|
||||||
|
import parallelLimit from 'async/parallelLimit'
|
||||||
|
|
||||||
$.verbose = false
|
$.verbose = false
|
||||||
// Preserves color from subshells
|
// Preserves color from subshells
|
||||||
|
@ -387,7 +388,8 @@ async function installPackages(pkgInstructions) {
|
||||||
}
|
}
|
||||||
log(`Performing ${promises.length} installations`)
|
log(`Performing ${promises.length} installations`)
|
||||||
process.env.DEBUG && console.log('Queued installs:', promises)
|
process.env.DEBUG && console.log('Queued installs:', promises)
|
||||||
const installs = await Promise.allSettled(promises)
|
// const installs = await Promise.allSettled(promises)
|
||||||
|
const installs = await parallelLimit(promises, 5)
|
||||||
log(`All of the installations have finished`)
|
log(`All of the installations have finished`)
|
||||||
process.env.DEBUG && console.log('Completed installs:', installs)
|
process.env.DEBUG && console.log('Completed installs:', installs)
|
||||||
await postInstall(combined)
|
await postInstall(combined)
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"linux-os-info": "2.0.0"
|
"linux-os-info": "2.0.0",
|
||||||
|
"async": "3.2.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue