From d163f264454055d066114e32214fc0967ce1140f Mon Sep 17 00:00:00 2001 From: Bryan Jenks Date: Mon, 27 Apr 2020 13:55:30 -0700 Subject: [PATCH] fix cmd substitution for mac version? --- flash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flash b/flash index 32d2587..fca6780 100755 --- a/flash +++ b/flash @@ -134,7 +134,7 @@ if [ ! -e "$REVIEW_LOG" ]; then fi # 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 [ -z "$DECK" ]; then