Skip to content

Commit 4e3903e

Browse files
kRHYME7Copilot
andauthored
Update Scripts/restore_cfg.sh
Co-authored-by: Copilot <[email protected]>
1 parent 1231765 commit 4e3903e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Scripts/restore_cfg.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ hyprland_hook() {
174174
local hyde_config="${cloneDir}/Configs/.config/hypr/hyprland.conf"
175175
local hyprland_default_config="${XDG_CONFIG_HOME:-$HOME/.config}/hypr/hyprland.conf"
176176
local hyq_exec="${cloneDir}/Configs/.local/lib/hyde/hyq"
177+
if [[ ! -x "${hyq_exec}" ]]; then
178+
print_log -r "[error] :: " "Required executable '${hyq_exec}' not found or not executable. Please ensure it exists and has execute permissions."
179+
return 1
180+
fi
177181
if ! "${hyq_exec}" "${hyprland_default_config}" --query "\$HYDE_HYPRLAND"; then
178182
mkdir -p "$(dirname "${hyprland_default_config}")" "${BkpDir}/.config/hypr"
179183
print_log -g "[hook] " -b "hyprland :: " "No HYDE_HYPRLAND variable found in ${hyprland_default_config}, restoring default HyDE marker..."

0 commit comments

Comments
 (0)