Skip to content

Commit 4ae2837

Browse files
committed
Some changes for if statement
1 parent d6eff49 commit 4ae2837

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

install.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -928,9 +928,9 @@ if [ $targetSystem = raspi ] ; then
928928
sudo bash $INSTALLERDIR/raspi/access_point/wap.sh
929929
fi
930930

931-
read -p "Do you want to download languages for offline recognition?[Y/N] " -n 1 -r
932-
echo # (optional) move to a new line
933-
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
931+
read -p "Do you want to download languages for offline recognition?[y/n] " lang
932+
echo
933+
if [[ $lang = y ]] ; then
934934
SR_LIB=$(python3 -c "import speech_recognition as sr, os.path as p; print(p.dirname(sr.__file__))")
935935
sudo mkdir "$SR_LIB/it-IT"
936936
sudo mkdir "$SR_LIB/temp"

0 commit comments

Comments
 (0)