remove hard coded number of recursive DIR searches

This commit is contained in:
Bryan Jenks 2020-04-27 13:49:17 -07:00
parent 397155be10
commit a842f6a7c7
1 changed files with 1 additions and 1 deletions

2
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 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 echo -e "$NO_DECKS" && cd "$PWD" && exit
fi fi