]>
git.r.bdr.sh - rbdr/dotfiles/blob - provision
6574db986eee7de0614fd9c48155359a2fc3acc2
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 dnf
&> /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"