]>
git.r.bdr.sh - rbdr/dotfiles/blob - provision
f21a7aa8164e14915bcf69581575c29319399cac
4 echo "Run with parameters: essential, nice, cask_essential, or cask_nice"
6 if command -v brew
&> /dev
/null
; then
8 install_command
="install"
10 if command -v apt
&> /dev
/null
; then
12 install_command
="install"
14 if command -v pacman
&> /dev
/null
; then
18 if command -v pacman
&> /dev
/null
; then
20 install_command
="install"
22 echo "Error: No valid package manager. Make sure brew or apt are available."
28 file="./provisioning/${command_name}_$1"
29 if [[ -f $file ]]; then
30 echo "Provisioning $1 with $command_name"
31 cat .
/provisioning
/${command_name}_
$1 | xargs ${command_name} ${install_command}
33 echo "No provisioning recipe for $1 with $command_name"