From 400f63bf2faa4fe3cc3b4a89c04a5ccd45c31f72 Mon Sep 17 00:00:00 2001 From: NonameBlank007 Date: Thu, 4 Dec 2025 11:16:01 +0530 Subject: [PATCH 1/2] Fix: do not break mgr This fixes xbps-install detection in merge commit as it has a name after "-" --- setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From f1c226bdcadf0babd54ac5eac62dedd8ebc80015 Mon Sep 17 00:00:00 2001 From: NonameBlank007 Date: Thu, 4 Dec 2025 12:42:01 +0530 Subject: [PATCH 2/2] Update Readme.md As setup.sh uses bash explicitly not sh, update it to comply with setup. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.