From bffbbe8e4d7e600e485d7a77c4c73383a2126a0b Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Wed, 14 Jun 2023 06:20:56 +0000 Subject: [PATCH] Latest --- home/dot_local/bin/executable_install-program | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/home/dot_local/bin/executable_install-program b/home/dot_local/bin/executable_install-program index d76399e4..d45a76b6 100644 --- a/home/dot_local/bin/executable_install-program +++ b/home/dot_local/bin/executable_install-program @@ -962,8 +962,11 @@ async function ensurePackageManager(packageManager) { const cargo = which.sync('cargo', { nothrow: true }) if (!cargo) { if (osType === 'darwin') { - await $`brew install rustup` - await $`rustup-init` + const rustup = which.sync('rustup-init', { nothrow: true }) + if (!rustup) { + await $`brew install rustup` + } + await $`rustup-init -y` } else if (osType === 'windows') { } else { await ensurePackage('cargo')