Fix openSUSE package management issues
- Make apt cleanup conditional for apt-based distros only - Change zypper options from -q to --quiet for compatibility - Add progress bar consistency for openSUSE updates
This commit is contained in:
12
setup.sh
12
setup.sh
@@ -387,8 +387,9 @@ update_system() {
|
||||
sudo pacman -Syu --noconfirm --quiet
|
||||
;;
|
||||
opensuse)
|
||||
sudo zypper refresh -q
|
||||
sudo zypper update -y -q
|
||||
sudo zypper refresh --quiet
|
||||
show_progress 5 10 "System Update"
|
||||
sudo zypper update -y --quiet
|
||||
;;
|
||||
esac
|
||||
|
||||
@@ -732,7 +733,12 @@ main() {
|
||||
|
||||
# Main installation
|
||||
log_info "Starting installation process..."
|
||||
preflight_apt_cleanup
|
||||
|
||||
# Run apt cleanup only for apt-based distributions
|
||||
if [[ "$DISTRO" == "ubuntu" || "$DISTRO" == "debian" ]]; then
|
||||
preflight_apt_cleanup
|
||||
fi
|
||||
|
||||
update_system
|
||||
run_installation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user