From fa083de2ba490407c839bad7dfd82af5913b379a Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Wed, 9 Aug 2023 02:12:46 -0400 Subject: [PATCH] Fixed install-program executable --- home/dot_local/bin/executable_install-program | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/home/dot_local/bin/executable_install-program b/home/dot_local/bin/executable_install-program index 2b4f1a5f..6cb692cf 100644 --- a/home/dot_local/bin/executable_install-program +++ b/home/dot_local/bin/executable_install-program @@ -859,8 +859,8 @@ async function ensurePackageManagerAnsible() { await $`pipx inject ansible-core PyObjC PyObjC-core` } await $`pipx inject ansible-core docker lxml netaddr pexpect python-vagrant pywinrm requests-credssp watchdog` - await $`mkdir -p "${XDG_CACHE_HOME:-$HOME/.cache}/megabyte-labs"` - await $`touch "${XDG_CACHE_HOME:-$HOME/.cache}/megabyte-labs/ansible-installed"` + await $`mkdir -p "$HOME/.cache/megabyte-labs"` + await $`touch "$HOME/.cache/megabyte-labs/ansible-installed"` log('info', 'Package Manager Install', `Ansible and its supporting packages are now installed via pipx`) } @@ -896,7 +896,7 @@ async function ensurePackageManager(packageManager) { } } else if (packageManager === 'ansible') { try { - await $`test -f "${XDG_CACHE_HOME:-$HOME/.cache}/megabyte-labs/ansible-installed"` + await $`test -f "$HOME/.cache/megabyte-labs/ansible-installed"` const ansible = which.sync('ansible', { nothrow: true }) if (ansible) { log('info', logStage, `\`ansible\` and its supporting packages appear to be installed`)