fix cmd substitution for mac version?

This commit is contained in:
Bryan Jenks 2020-04-27 13:55:30 -07:00
parent 6b03a3b76e
commit d163f26445
1 changed files with 1 additions and 1 deletions

2
flash
View File

@ -134,7 +134,7 @@ if [ ! -e "$REVIEW_LOG" ]; then
fi fi
# Show pretty FZF preview of decks using BAT # Show pretty FZF preview of decks using BAT
DECK="$(find -maxdepth $SEARCH_DEPTH -iname '*.csv' | fzf --preview='bat --theme="Solarized (dark)" --style=numbers --color=always {} | head -500')" DECK=$(find -maxdepth "$SEARCH_DEPTH" -iname "*.csv" | fzf --preview='bat --theme="Solarized (dark)" --style=numbers --color=always {} | head -500')
# If no deck is selected in fzf menu, return user to start location and exit # If no deck is selected in fzf menu, return user to start location and exit
if [ -z "$DECK" ]; then if [ -z "$DECK" ]; then