From eff0597625930a09591cbd3adcb12b65dde72178 Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Thu, 19 Oct 2017 21:40:33 +0200 Subject: [PATCH] fix double slashes in path names --- script/rofi-theme-selector | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/rofi-theme-selector b/script/rofi-theme-selector index 374f8a5b..671a8c2d 100755 --- a/script/rofi-theme-selector +++ b/script/rofi-theme-selector @@ -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}"