From 11b847b635fb7c5710cc73a52cb02eff1502fc0c Mon Sep 17 00:00:00 2001 From: Bryan Jenks Date: Tue, 28 Apr 2020 22:37:06 -0700 Subject: [PATCH] Revert "add path arg to find command" This reverts commit 46deb034fd9100b1755d9f42c4b27bb69337cf4d. --- flash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flash b/flash index 263d55c..4447920 100755 --- a/flash +++ b/flash @@ -119,7 +119,7 @@ fi cd "$DIR" # 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 fi @@ -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