mirror of
https://github.com/vinceliuice/grub2-themes.git
synced 2024-12-25 18:55:34 +01:00
- Reordered the $screen check function in pre-root part of install() to avoid unnecessary code execution in case the program exists early due to $screen error if ultrawide is selected with Slazy
- Minor grammatical error fixes
This commit is contained in:
parent
d005d49168
commit
f4b1a85ab0
11
install.sh
11
install.sh
@ -91,17 +91,17 @@ install() {
|
|||||||
local screen="1080p"
|
local screen="1080p"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ ${screen} == '1080p_21:9' && ${name} == 'Slaze' ]]; then
|
||||||
|
prompt -e "ultrawide 1080p does not support Slaze theme"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ ${custom_background} == 'custom-background' ]]; then
|
if [[ ${custom_background} == 'custom-background' ]]; then
|
||||||
local custom_background="custom-background"
|
local custom_background="custom-background"
|
||||||
else
|
else
|
||||||
local custom_background="default-background"
|
local custom_background="default-background"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${screen} == '1080p_21:9' && ${name} == 'Slaze' ]]; then
|
|
||||||
prompt -e "ultrawide 1080p does not support Slaze theme"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ${icon} == 'white' ]]; then
|
if [[ ${icon} == 'white' ]]; then
|
||||||
local icon="white"
|
local icon="white"
|
||||||
else
|
else
|
||||||
@ -110,6 +110,7 @@ install() {
|
|||||||
|
|
||||||
# Check for root access and proceed if it is present
|
# Check for root access and proceed if it is present
|
||||||
if [ "$UID" -eq "$ROOT_UID" ]; then
|
if [ "$UID" -eq "$ROOT_UID" ]; then
|
||||||
|
|
||||||
clear
|
clear
|
||||||
|
|
||||||
if [[ "${custom_background}" == "custom-background" ]]; then
|
if [[ "${custom_background}" == "custom-background" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user