fix duplicative path section in info msg
This commit is contained in:
parent
871f493f33
commit
6b03a3b76e
4
flash
4
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue