summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscript/rofi-theme-selector4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/rofi-theme-selector b/script/rofi-theme-selector
index 8c50e5a4..c52a5b48 100755
--- a/script/rofi-theme-selector
+++ b/script/rofi-theme-selector
@@ -46,12 +46,12 @@ function find_themes()
exit 1;
fi
# Add user dir.
- DIRS+="${HOME}/.local/share/"
+ DIRS+=":${HOME}/.local/share/"
OLDIFS=${IFS}
IFS=:
for p in ${DIRS}; do
TD=${p}rofi/themes/
- if [ -d "${TD}" ]
+ if [ -n "${p}" ] && [ -d "${TD}" ]
then
for file in ${TD}/*.theme
do