From 6f235a8bc5501b257df32330d70dd0c9324dcd74 Mon Sep 17 00:00:00 2001 From: vinceliuice Date: Sun, 17 Aug 2025 12:20:45 +0800 Subject: [PATCH] Update install.sh --- install.sh | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index baf623e..8746336 100755 --- a/install.sh +++ b/install.sh @@ -116,7 +116,7 @@ generate() { # Determine which configuration file and assets to use if [[ -n "$custom_resolution" ]]; then - if has_command pacman; then + if has_command apt || has_command pacman || has_command eopkg; then install_depends imagemagick else install_depends ImageMagick @@ -135,7 +135,7 @@ generate() { # Use custom background.jpg as grub background image if [[ -f "${REO_DIR}/background.jpg" ]]; then - if has_command pacman; then + if has_command apt || has_command pacman || has_command eopkg; then install_depends imagemagick else install_depends ImageMagick @@ -444,15 +444,21 @@ updating_grub() { function install_program () { if has_command zypper; then - zypper in "$@" + zypper in -y "$@" + elif has_command swupd; then + swupd bundle-add "$@" elif has_command apt-get; then apt-get install "$@" elif has_command dnf; then dnf install -y "$@" elif has_command yum; then - yum install "$@" + yum install -y "$@" elif has_command pacman; then - pacman -S --noconfirm "$@" + pacman -Syyu --noconfirm --needed "$@" + elif has_command xbps-install; then + xbps-install -Sy "$@" + elif has_command eopkg; then + eopkg -y install "$@" fi }