fix duplicative path section in info msg

This commit is contained in:
Bryan Jenks 2020-04-27 13:54:37 -07:00
parent 871f493f33
commit 6b03a3b76e
1 changed files with 2 additions and 2 deletions

4
flash
View File

@ -106,7 +106,7 @@ Programming:Best operating system?:Arch, because BTW i run Arch:999"
# Test if .local/share exists and wether to offer setup process
if [ ! -d "$DIR" ];then
echo -e "No ${LRED}$DIR/flash${NC} directory, make it? ${LGREEN}Y${NC}/${LRED}N${NC}"
echo -e "No ${LRED}$DIR${NC} directory, make it? ${LGREEN}Y${NC}/${LRED}N${NC}"
read RESPONSE
case "$RESPONSE" in
[QqNn]) exit ;;
@ -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