From 5bebe44e7bd003cff4e9413f1cbc37b4dfac6490 Mon Sep 17 00:00:00 2001 From: John D Pell Date: Sun, 25 Jul 2021 21:08:12 -0700 Subject: [PATCH] lib/preview: fix glob for paths with spaces Fix theme file path globbing when $BASH_IT contains any spaces. --- lib/preview.bash | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/preview.bash b/lib/preview.bash index d0fb0623ba..9564b232bf 100644 --- a/lib/preview.bash +++ b/lib/preview.bash @@ -7,8 +7,7 @@ then " - THEMES="$BASH_IT/themes/*/*.theme.bash" - for theme in $THEMES + for theme in "$BASH_IT/themes"/*/*.theme.bash do BASH_IT_THEME=${theme%.theme.bash} BASH_IT_THEME=${BASH_IT_THEME##*/}