1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

Add explicit / after path element when searching themes.

This commit is contained in:
Dave Davenport 2016-11-28 19:47:06 +01:00
parent c6c7152b6e
commit ab9330521b

View file

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