From 6b03a3b76e670126d114439e0b209b9b0d6229ed Mon Sep 17 00:00:00 2001 From: Bryan Jenks Date: Mon, 27 Apr 2020 13:54:37 -0700 Subject: [PATCH] fix duplicative path section in info msg --- flash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flash b/flash index f4b5f28..32d2587 100755 --- a/flash +++ b/flash @@ -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