fix double slashes in path names

This commit is contained in:
Rasmus Steinke 2017-10-19 21:40:33 +02:00
parent 6f63e80b2f
commit eff0597625

View file

@ -70,7 +70,8 @@ function find_themes()
# Add user dir.
DIRS+=":${HOME}/.local/share/"
for p in ${DIRS}; do
TD=${p}/rofi/themes/
p=${p%/}
TD=${p}/rofi/themes
if [ -n "${p}" ] && [ -d "${TD}" ]
then
echo "Checking themes in: ${TD}"