X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/blobdiff_plain/8bf2adeececb300944479c7a07ff8c6c0af9f4a5..e4963fae03c4d4403fcca3157bebf5e47ef2010f:/provision?ds=inline diff --git a/provision b/provision index d36cced..60a5201 100755 --- a/provision +++ b/provision @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/usr/bin/env bash if [[ -z "$1" ]]; then echo "Run with parameters: essential, nice, cask_essential, or cask_nice" @@ -7,7 +7,7 @@ else command_name="brew" else if command -v apt &> /dev/null; then - command_name="brew" + command_name="apt" else echo "Error: No valid package manager. Make sure brew or apt are available." exit 1 @@ -19,5 +19,6 @@ else cat ./provisioning/${command_name}_$1 | xargs ${command_name} install else echo "No provisioning recipe for $1 with $command_name" + exit 1 fi fi