Skip to content

Commit d73842c

Browse files
authored
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.
2 parents 3acfa1b + f1c226b commit d73842c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ https://github.com/user-attachments/assets/181d48c2-f152-45f5-b568-21145be180f6
5151
### Automatic Installation
5252

5353
```sh
54-
sh -c "$(curl -fsSL https://raw.githubusercontent.com/keyitdev/sddm-astronaut-theme/master/setup.sh)"
54+
bash -c "$(curl -fsSL https://raw.githubusercontent.com/keyitdev/sddm-astronaut-theme/master/setup.sh)"
5555
```
5656
> Works on distributions using pacman, xbps-install, dnf, zypper.
5757
> Remember to always read the scripts you run from the internet.

setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ spin() {
7474

7575
# Install gum if missing
7676
install_gum() {
77-
local mgr=$(for m in pacman xbps-install dnf zypper apt; do command -v $m &>/dev/null && { echo ${m%%-*}; break; }; done)
77+
local mgr=$(for m in pacman xbps-install dnf zypper apt; do command -v $m &>/dev/null && { echo $m; break; }; done)
7878

7979
case $mgr in
8080
pacman) sudo pacman -S gum ;;
@@ -103,7 +103,7 @@ check_gum() {
103103

104104
# Install dependencies
105105
install_deps() {
106-
local mgr=$(for m in pacman xbps-install dnf zypper apt; do command -v $m &>/dev/null && { echo ${m%%-*}; break; }; done)
106+
local mgr=$(for m in pacman xbps-install dnf zypper apt; do command -v $m &>/dev/null && { echo $m; break; }; done)
107107
info "Package manager: $mgr"
108108

109109
case $mgr in

0 commit comments

Comments
 (0)