Update install.sh

master
vinceliuice 3 months ago
parent 03d8c9cf0d
commit 6f235a8bc5

@ -116,7 +116,7 @@ generate() {
# Determine which configuration file and assets to use # Determine which configuration file and assets to use
if [[ -n "$custom_resolution" ]]; then if [[ -n "$custom_resolution" ]]; then
if has_command pacman; then if has_command apt || has_command pacman || has_command eopkg; then
install_depends imagemagick install_depends imagemagick
else else
install_depends ImageMagick install_depends ImageMagick
@ -135,7 +135,7 @@ generate() {
# Use custom background.jpg as grub background image # Use custom background.jpg as grub background image
if [[ -f "${REO_DIR}/background.jpg" ]]; then 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 install_depends imagemagick
else else
install_depends ImageMagick install_depends ImageMagick
@ -444,15 +444,21 @@ updating_grub() {
function install_program () { function install_program () {
if has_command zypper; then if has_command zypper; then
zypper in "$@" zypper in -y "$@"
elif has_command swupd; then
swupd bundle-add "$@"
elif has_command apt-get; then elif has_command apt-get; then
apt-get install "$@" apt-get install "$@"
elif has_command dnf; then elif has_command dnf; then
dnf install -y "$@" dnf install -y "$@"
elif has_command yum; then elif has_command yum; then
yum install "$@" yum install -y "$@"
elif has_command pacman; then 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 fi
} }

Loading…
Cancel
Save