diff options
author | Ibrahim Mkusa <ibrahimmkusa@gmail.com> | 2024-08-08 10:15:11 -0400 |
---|---|---|
committer | Ibrahim Mkusa <ibrahimmkusa@gmail.com> | 2024-08-08 10:15:11 -0400 |
commit | 7cedae7f4b26ab357283724c662ef05a781cec7b (patch) | |
tree | f69ec83ae750fdb170e44d55f003b5dfe58fcca4 | |
parent | e732440189c7c70e9e035fde204202601599192c (diff) |
detect package manager
-rwxr-xr-x | install.sh | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -12,11 +12,13 @@ if [[ -f /etc/os-release ]]; then case "$ID_LIKE" in debian) echo "Running on debian-family. Installing core packages" - sudo apt install -y vim-nox git stow curl ranger tmux + package_manager=apt + sudo $package_manager install -y vim-nox git stow curl ranger tmux ;; fedora) echo "Running on debian-family. Installing core packages" - sudo apt install -y vim-enhanced git stow curl ranger tmux + package_manager=fedora + sudo $package_manager install -y vim-enhanced git stow curl ranger tmux esac else echo "You are running an unrecognized family of os. Quitting..." |