From 3917f2b88a86c8c539ce1105c4580c13fc3b3adf Mon Sep 17 00:00:00 2001 From: vx_clutch <98831688+vx-clutch@users.noreply.github.com> Date: Tue, 9 Sep 2025 10:47:20 -0400 Subject: [PATCH] Update get --- bin/.local/bin/get | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/bin/.local/bin/get b/bin/.local/bin/get index 8a888aa..5827641 100644 --- a/bin/.local/bin/get +++ b/bin/.local/bin/get @@ -1,6 +1,8 @@ #!/bin/sh pkgs="$@" +installer="echo "error: something went wrong" ; exit 1" + check() { return command -v xbps-install >dev/null 2>&1 } @@ -11,6 +13,13 @@ elif check pacman; then installer="sudo pacman -Syu" elif check apt; then installer="sudo apt install -y" +elif check dnf; then + installer="sudo dnf install -y" +elif check brew; then + installer="brew install" else - echo Could not find package manager. + echo "error: could not find package manager." ; exit 1 fi + +$installer $pkgs && echo "done." && exit 0 +exit 1