Merge pull request #73 from NonameBlank007/master

Fix: Fixed package manager detection in void. Fixed installation instructions for systems that use dash as the default shell.
This commit is contained in:
Keyitdev
2025-12-06 12:11:30 +01:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ https://github.com/user-attachments/assets/181d48c2-f152-45f5-b568-21145be180f6
### Automatic Installation ### Automatic Installation
```sh ```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. > Works on distributions using pacman, xbps-install, dnf, zypper.
> Remember to always read the scripts you run from the internet. > Remember to always read the scripts you run from the internet.
+2 -2
View File
@@ -74,7 +74,7 @@ spin() {
# Install gum if missing # Install gum if missing
install_gum() { 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 case $mgr in
pacman) sudo pacman -S gum ;; pacman) sudo pacman -S gum ;;
@@ -103,7 +103,7 @@ check_gum() {
# Install dependencies # Install dependencies
install_deps() { 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" info "Package manager: $mgr"
case $mgr in case $mgr in