diff --git a/README.md b/README.md index 21d9cfc..3bb656f 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ https://github.com/user-attachments/assets/181d48c2-f152-45f5-b568-21145be180f6 ### Automatic Installation ```sh -sh -c "$(curl -fsSL https://raw.githubusercontent.com/keyitdev/sddm-astronaut-theme/master/setup.sh)" +bash -c "$(curl -fsSL https://raw.githubusercontent.com/keyitdev/sddm-astronaut-theme/master/setup.sh)" ``` > Works on distributions using pacman, xbps-install, dnf, zypper. > Remember to always read the scripts you run from the internet. diff --git a/setup.sh b/setup.sh index fefe4c0..9ea1f68 100755 --- a/setup.sh +++ b/setup.sh @@ -74,7 +74,7 @@ spin() { # Install gum if missing install_gum() { - local mgr=$(for m in pacman xbps-install dnf zypper apt; do command -v $m &>/dev/null && { echo ${m%%-*}; break; }; done) + local mgr=$(for m in pacman xbps-install dnf zypper apt; do command -v $m &>/dev/null && { echo $m; break; }; done) case $mgr in pacman) sudo pacman -S gum ;; @@ -103,7 +103,7 @@ check_gum() { # Install dependencies install_deps() { - local mgr=$(for m in pacman xbps-install dnf zypper apt; do command -v $m &>/dev/null && { echo ${m%%-*}; break; }; done) + local mgr=$(for m in pacman xbps-install dnf zypper apt; do command -v $m &>/dev/null && { echo $m; break; }; done) info "Package manager: $mgr" case $mgr in