remove hard coded number of recursive DIR searches
This commit is contained in:
parent
397155be10
commit
a842f6a7c7
2
flash
2
flash
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue