Revert "add path arg to find command"

This reverts commit 46deb034fd.
This commit is contained in:
Bryan Jenks 2020-04-28 22:37:06 -07:00
parent 9341bdac98
commit 11b847b635
1 changed files with 2 additions and 2 deletions

4
flash
View File

@ -119,7 +119,7 @@ fi
cd "$DIR" cd "$DIR"
# If there are no flashcard decks available return user to starting location # If there are no flashcard decks available return user to starting location
if [ $(find . -maxdepth "$SEARCH_DEPTH" -iname "*.csv" | wc -l) = 0 ]; then if [ $(find -maxdepth "$SEARCH_DEPTH" -iname "*.csv" | wc -l) = 0 ]; then
echo -e "$NO_DECKS" && cd "$PWD" && exit echo -e "$NO_DECKS" && cd "$PWD" && exit
fi fi
@ -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