Skip to content

Commit

Permalink
lib/preview: fix glob for paths with spaces
Browse files Browse the repository at this point in the history
Fix theme file path globbing when $BASH_IT contains any spaces.
  • Loading branch information
gaelicWizard committed Aug 26, 2021
1 parent 7a24219 commit 5bebe44
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/preview.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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##*/}
Expand Down

0 comments on commit 5bebe44

Please sign in to comment.