From cd5d74016f81c1c8baf8b9bee4ff43e88223f830 Mon Sep 17 00:00:00 2001 From: Bryan Jenks Date: Sat, 2 May 2020 15:18:17 -0700 Subject: [PATCH] remove slash from find command, why did i even... --- flash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flash b/flash index 289c708..be25032 100755 --- a/flash +++ b/flash @@ -121,7 +121,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 @@ -136,7 +136,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