mirror of
https://github.com/vinceliuice/grub2-themes.git
synced 2026-03-07 19:24:00 +08:00
Update install.sh
This commit is contained in:
16
install.sh
16
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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user