summaryrefslogtreecommitdiffstats
path: root/script
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-10-29 11:13:28 +0200
committerDave Davenport <qball@gmpclient.org>2016-10-29 11:13:28 +0200
commit96b133db829795345da300cda8f6e2c7bc0a6add (patch)
treef3dc551da009e1785be09a75c5d0a22a29a70e07 /script
parent86b6beb1e9c69f70c0abf96f6515f7651cda06a5 (diff)
Small fix for rofi-theme-selector
Diffstat (limited to 'script')
-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