Update .local/share/chezmoi/home/dot_local/bin/executable_install-program

This commit is contained in:
Brian Zalewski 2022-12-05 06:10:55 +00:00
parent 35a522fe82
commit b505162e79

View file

@ -1,7 +1,5 @@
#!/usr/bin/env zx #!/usr/bin/env zx
declare let chalk, which, YAML, $;
const execSync = require("child_process").execSync; const execSync = require("child_process").execSync;
// Log symbols // Log symbols
@ -180,9 +178,11 @@ async function generateInstallOrders() {
normalCheck = normalCheck =
softwarePackages[currentPkgRef] && softwarePackages[currentPkgRef] &&
softwarePackages[currentPkgRef]["_" + currentSelector]; softwarePackages[currentPkgRef]["_" + currentSelector];
console.log('NorMIE')
console.log(normalCheck)
if (doubleScoped) { if (doubleScoped) {
try { try {
await $(doubleScoped); await $doubleScoped;
} catch (e) { } catch (e) {
let pref; let pref;
if ( if (
@ -219,7 +219,7 @@ async function generateInstallOrders() {
} }
} else if (scopedPkgManager) { } else if (scopedPkgManager) {
try { try {
await $(scopedPkgManager); await $scopedPkgManager;
} catch (e) { } catch (e) {
const pref = preference; const pref = preference;
log( log(
@ -231,7 +231,7 @@ async function generateInstallOrders() {
} }
} else if (scopedSystem) { } else if (scopedSystem) {
try { try {
await $(scopedSystem); await $scopedSystem;
} catch (e) { } catch (e) {
let pref; let pref;
if ( if (
@ -255,6 +255,7 @@ async function generateInstallOrders() {
continue pkgFor; continue pkgFor;
} }
} else if (normalCheck) { } else if (normalCheck) {
console.log('NORMAL CHECK')
try { try {
await $(normalCheck); await $(normalCheck);
} catch (e) { } catch (e) {
@ -1360,7 +1361,7 @@ async function main() {
} }
log("info", "Package Install", `Installing the packages`); log("info", "Package Install", `Installing the packages`);
for (const packageManager of packageManagers) { for (const packageManager of packageManagers) {
const asyncOrders: Promise<any>[] = []; const asyncOrders = [];
asyncOrders.push( asyncOrders.push(
installPackageList(packageManager, installOrders[packageManager]) installPackageList(packageManager, installOrders[packageManager])
); );