Skip to content

Commit 8026623

Browse files
committed
Fix 1st error [Bug]: Icons cannot be displayed properly #1018
1 parent 086144f commit 8026623

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

Scripts/install.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,12 @@ if [ $flg_Install -eq 1 ] ||
304304
[ $flg_Restore -eq 1 ] ||
305305
[ $flg_Service -eq 1 ] &&
306306
[ $flg_DryRun -ne 1 ]; then
307+
308+
if [[ -z "${HYPRLAND_CONFIG:-}" ]] || [[ ! -f "${HYPRLAND_CONFIG}" ]]; then
309+
print_log -warn "Hyprland config not found! Might be a new install or upgrade."
310+
print_log -warn "Please reboot the system to apply new changes."
311+
fi
312+
307313
print_log -stat "HyDE" "It is not recommended to use newly installed or upgraded HyDE without rebooting the system. Do you want to reboot the system? (y/N)"
308314
read -r answer
309315

@@ -314,9 +320,3 @@ if [ $flg_Install -eq 1 ] ||
314320
echo "The system will not reboot"
315321
fi
316322
fi
317-
318-
if [[ -z "${HYPRLAND_CONFIG:-}" ]] || [[ ! -f "${HYPRLAND_CONFIG}" ]]; then
319-
print_log -sec "hyprland" -warn "No Hyprland config file found" "Please set HYPRLAND_CONFIG environment variable to your Hyprland config file path."
320-
print_log -sec "hyprland" -warn "No Hyprland config file found" "Maybe Broken HyDE installation?"
321-
print_log -sec "hyprland" -warn " " "Or you just need to reboot the system."
322-
fi

Scripts/restore_shl.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ fi
2424
# add zsh plugins
2525
if pkg_installed zsh; then
2626
prompt_timer 120 "Pre install zsh plugins using oh-my-zsh? [y/n] | q to quit "
27-
28-
if [ "${PROMPT_INPUT}" == "y" ]; then
27+
PROMPT_INPUT="${PROMPT_INPUT:-y}"
28+
if [[ "${PROMPT_INPUT}" == "y" || "${PROMPT_INPUT}" == "yes" ]]; then
2929
if ! pkg_installed oh-my-zsh-git; then
3030
if [[ ! -e "$HOME/.oh-my-zsh/oh-my-zsh.sh" ]]; then
3131
print_log -sec "SHELL" -stat "cloning" "oh-my-zsh"
@@ -34,7 +34,6 @@ if pkg_installed zsh; then
3434
print_log -warn "Continuing" "with existing oh-my-zsh..."
3535
exit 0
3636
fi
37-
3837
else
3938
print_log -sec "SHELL" -stat "updating" "oh-my-zsh"
4039
zsh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/upgrade.sh)"
@@ -43,7 +42,7 @@ if pkg_installed zsh; then
4342
fi
4443

4544
#? Optional: oh-my-zsh
46-
if (pkg_installed oh-my-zsh-git || [[ -f "${HOME}/.oh-my-zsh/oh-my-zsh.sh" ]]) && [ ${flg_DryRun} -ne 1 ]; then
45+
if (pkg_installed oh-my-zsh-git || [[ -f "${HOME}/.oh-my-zsh/oh-my-zsh.sh" ]]) && [ "${flg_DryRun}" -ne 1 ]; then
4746
zsh_paths=(
4847
"$HOME/.oh-my-zsh"
4948
"/usr/local/share/oh-my-zsh"

0 commit comments

Comments
 (0)