From a842f6a7c74a203dc4144c1d796415040f39bc49 Mon Sep 17 00:00:00 2001 From: Bryan Jenks Date: Mon, 27 Apr 2020 13:49:17 -0700 Subject: [PATCH] remove hard coded number of recursive DIR searches --- flash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flash b/flash index 7787196..f54e102 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 999 -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