wip
This commit is contained in:
parent
6c08024cd9
commit
be5fdade23
1 changed files with 7 additions and 7 deletions
14
dream.sh
14
dream.sh
|
@ -478,11 +478,11 @@ update-package-list() {
|
|||
case "$distro" in
|
||||
ubuntu | debian)
|
||||
spin bold red "Refreshing $distro sources.."
|
||||
run $_sudo apt-get update || repo::check
|
||||
run $_sudo apt-get update && repo::check
|
||||
;;
|
||||
fedora)
|
||||
spin blue bold "Refreshing $distro repositories.."
|
||||
run $_sudo dnf update || repo::check
|
||||
run $_sudo dnf update && repo::check
|
||||
;;
|
||||
arch)
|
||||
if command-exists pacman; then
|
||||
|
@ -525,17 +525,17 @@ update-package-list() {
|
|||
# sleep 0.01
|
||||
|
||||
if command-exists paru; then
|
||||
run paru -Sy || repo::check
|
||||
run paru -Sy && repo::check
|
||||
elif command-exists yay; then
|
||||
run yay -Sy || repo::check
|
||||
run yay -Sy && repo::check
|
||||
else
|
||||
run $_sudo pacman -Sy || repo::check
|
||||
run $_sudo pacman -Sy && repo::check
|
||||
fi
|
||||
;;
|
||||
opensuse)
|
||||
run $_sudo zypper ref || repo::check
|
||||
run $_sudo zypper ref && repo::check
|
||||
;;
|
||||
alpine) run $_sudo apk update || repo::check ;;
|
||||
alpine) run $_sudo apk update && repo::check ;;
|
||||
*)
|
||||
echo-error "Unsupported distribution: ${BRIGHT_RED}$distro"
|
||||
return 69
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue