💥 scripts(install): fix wrong directory if XDG_CONFIG_HOME's not defined

This commit is contained in:
retrozinndev
2025-05-15 16:53:40 -03:00
parent 9275d43126
commit f9c7a02a0f
+2
View File
@@ -6,6 +6,8 @@ set -e
trap "printf \"\nOk, quitting beacuse you entered an exit signal. (SIGINT).\n\"; exit 1" SIGINT 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 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() { function Apply_wallpapers() {
echo -n "Would you also like to apply the wallpapers folder? :3 [y/n] " echo -n "Would you also like to apply the wallpapers folder? :3 [y/n] "
read answer read answer