diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-03-04 01:17:58 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2023-03-04 01:17:58 +0100 |
| commit | ad7a214d01c42b9c784e5d2b79466ec25f56bd22 (patch) | |
| tree | 52457fedd2ed4f8e52c186602eef34203d49ea4a /provision | |
| parent | 8503727ab086d3e81f90abb7734b18c584ac08fd (diff) | |
Add arch support, update X settings
Diffstat (limited to 'provision')
| -rwxr-xr-x | provision | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -5,18 +5,25 @@ if [[ -z "$1" ]]; then else if command -v brew &> /dev/null; then command_name="brew" + install_command="install" else if command -v apt &> /dev/null; then command_name="apt" + install_command="install" else - echo "Error: No valid package manager. Make sure brew or apt are available." - exit 1 + if command -v pacman &> /dev/null; then + command_name="pacman" + install_command="-Sy" + else + echo "Error: No valid package manager. Make sure brew or apt are available." + exit 1 + fi fi fi file="./provisioning/${command_name}_$1" if [[ -f $file ]]; then echo "Provisioning $1 with $command_name" - cat ./provisioning/${command_name}_$1 | xargs ${command_name} install + cat ./provisioning/${command_name}_$1 | xargs ${command_name} ${install_command} else echo "No provisioning recipe for $1 with $command_name" exit 1 |