From e72fd9a41b9b685a46bc95192c67654709f1f160 Mon Sep 17 00:00:00 2001 From: corbosman Date: Sat, 25 Jul 2015 12:41:57 +0200 Subject: [PATCH] fix match for theme --- gitprompt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitprompt.sh b/gitprompt.sh index e5a4c1d..6308ac5 100755 --- a/gitprompt.sh +++ b/gitprompt.sh @@ -52,7 +52,7 @@ function get_theme() local theme="" # use default theme, if theme was not found - for themefile in `ls "$__GIT_PROMPT_DIR/themes"`; do + for themefile in $(cd "$__GIT_PROMPT_DIR/themes" && echo *); do if [[ "${themefile}" = "${GIT_PROMPT_THEME}.bgptheme" ]]; then theme=$GIT_PROMPT_THEME fi