This commit is contained in:
pika 2025-05-23 21:32:23 +02:00
parent 6c08024cd9
commit be5fdade23

View file

@ -478,11 +478,11 @@ update-package-list() {
case "$distro" in case "$distro" in
ubuntu | debian) ubuntu | debian)
spin bold red "Refreshing $distro sources.." spin bold red "Refreshing $distro sources.."
run $_sudo apt-get update || repo::check run $_sudo apt-get update && repo::check
;; ;;
fedora) fedora)
spin blue bold "Refreshing $distro repositories.." spin blue bold "Refreshing $distro repositories.."
run $_sudo dnf update || repo::check run $_sudo dnf update && repo::check
;; ;;
arch) arch)
if command-exists pacman; then if command-exists pacman; then
@ -525,17 +525,17 @@ update-package-list() {
# sleep 0.01 # sleep 0.01
if command-exists paru; then if command-exists paru; then
run paru -Sy || repo::check run paru -Sy && repo::check
elif command-exists yay; then elif command-exists yay; then
run yay -Sy || repo::check run yay -Sy && repo::check
else else
run $_sudo pacman -Sy || repo::check run $_sudo pacman -Sy && repo::check
fi fi
;; ;;
opensuse) 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" echo-error "Unsupported distribution: ${BRIGHT_RED}$distro"
return 69 return 69