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

This commit is contained in:
Brian Zalewski 2022-12-02 14:30:38 +00:00
parent 38d22a1239
commit 806fec863a

View file

@ -310,6 +310,8 @@ async function ensurePackageManager(packageManager) {
echo "Bash script that installs bpkg here"
`)
} else if (packageManager === 'brew' || packageManager === 'cask') {
const brew = which.sync('brew', { nothrow: true })
if (!brew) {
await ensureInstalled('brew', $`
if command -v sudo > /dev/null && sudo -n true; then
echo | bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
@ -330,6 +332,7 @@ async function ensurePackageManager(packageManager) {
fi
fi
`)
}
} else if (packageManager === 'cargo') {
await ensureInstalled('cargo', $`
# TODO Bash script that installs cargo