Make sure XDG_DATA_HOME is used, if set.

This commit is contained in:
Rasmus Steinke 2018-04-08 10:41:04 +02:00 committed by GitHub
parent abeb18eee6
commit f8702c6c67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
DIRECTORY=${HOME}/.local/share/rofi/themes/ xdg=${${XDG_DATA_HOME}:-${HOME}/.local/share}
DIRECTORY="${xdg}/rofi/themes/}"
if [ ! -d "${DIRECTORY}" ] if [ ! -d "${DIRECTORY}" ]
then then