diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-04-11 16:25:25 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-04-11 16:25:25 +0200 |
| commit | 6dd179e85a0834420de3fea9ae409b8fab7c7f36 (patch) | |
| tree | 89b9f8c230beba5fec7a65dc8a290590adb359f7 /provision | |
| parent | 10cd73c7b7d4a22ef1e2c7b1579be3d5ebe54585 (diff) | |
use sudo dnf, add wofi config, check for passage store
Diffstat (limited to 'provision')
| -rwxr-xr-x | provision | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -6,18 +6,22 @@ else if command -v brew &> /dev/null; then command_name="brew" install_command="install" + privilege="" else if command -v dnf &> /dev/null; then command_name="dnf" install_command="install" + privilege="sudo" else if command -v pacman &> /dev/null; then command_name="pacman" install_command="-Sy" + privilege="sudo" else if command -v apt &> /dev/null; then command_name="apt" install_command="install" + privilege="sudo" else echo "Error: No valid package manager. Make sure brew or apt are available." exit 1 @@ -28,7 +32,7 @@ else file="./provisioning/${command_name}_$1" if [[ -f $file ]]; then echo "Provisioning $1 with $command_name" - cat ./provisioning/${command_name}_$1 | xargs ${command_name} ${install_command} + cat ./provisioning/${command_name}_$1 | xargs ${privilege} ${command_name} ${install_command} else echo "No provisioning recipe for $1 with $command_name" exit 1 |