From 9edace21f754ed49595ac8e9c5aad687114b79e9 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Mon, 5 Dec 2022 04:07:59 +0000 Subject: [PATCH] Update .local/share/chezmoi/home/dot_local/bin/executable_install-program --- .../chezmoi/home/dot_local/bin/executable_install-program | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.local/share/chezmoi/home/dot_local/bin/executable_install-program b/.local/share/chezmoi/home/dot_local/bin/executable_install-program index 272bb721..7be9c4c0 100644 --- a/.local/share/chezmoi/home/dot_local/bin/executable_install-program +++ b/.local/share/chezmoi/home/dot_local/bin/executable_install-program @@ -127,9 +127,10 @@ async function generateInstallOrders() { for (const when of whens) { if (when) { try { - await $`${when}` + await $when } catch (e) { log('info', 'Skipping Package', `${pkg} is being skipped because of the _when condition`) + continue pkgFor } } } @@ -897,7 +898,7 @@ async function main() { installData = await downloadInstallData(); log('info', 'Install Orders', `Calculating the install orders`) await generateInstallOrders(); - log('info', `Ensuring any package managers that will be used are installed / configured`) + log('info', 'Ensure Package Manager Installed', `Ensuring any package managers that will be used are installed / configured`) const packageManagers = Object.keys(installOrders); for (const packageManager of packageManagers) { await ensurePackageManager(packageManager);