From f9c7a02a0fa2a607eca78a5860220f42d78646a2 Mon Sep 17 00:00:00 2001 From: retrozinndev Date: Thu, 15 May 2025 16:53:40 -0300 Subject: [PATCH] :boom: scripts(install): fix wrong directory if XDG_CONFIG_HOME's not defined --- install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install.sh b/install.sh index a146a83..dd625ed 100755 --- a/install.sh +++ b/install.sh @@ -6,6 +6,8 @@ set -e trap "printf \"\nOk, quitting beacuse you entered an exit signal. (SIGINT).\n\"; exit 1" SIGINT trap "printf \"\nOh noo!! Some application just killed the script!\"; exit 2" SIGTERM +XDG_CONFIG_HOME=$(sh -c '[[ ! -z "$XDG_CONFIG_HOME" ]] && echo "$XDG_CONFIG_HOME" || "$HOME/.config"') + function Apply_wallpapers() { echo -n "Would you also like to apply the wallpapers folder? :3 [y/n] " read answer