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