added check for existance of $XDG_CONFIG_HOME

This commit is contained in:
Tomas Baca 2019-05-10 16:20:13 +02:00
parent 00cbc5d878
commit 39af10297a

View File

@ -48,7 +48,11 @@ fi
# #}
LAYOUT_PATH=$XDG_CONFIG_HOME/i3-layout-manager/layouts
if [ -z "$XDG_CONFIG_HOME" ]; then
LAYOUT_PATH=~/.layouts
else
LAYOUT_PATH="$XDG_CONFIG_HOME/i3-layout-manager/layouts"
fi
# make directory for storing layouts
mkdir -p $LAYOUT_PATH > /dev/null 2>&1