Fixed a bug in array size check.
This commit is contained in:
parent
c373f2d0e5
commit
1ab8e8620a
@ -194,7 +194,7 @@ for x in "${voiceListFullName[@]}" ; do
|
||||
done
|
||||
oldVoice="$($grep -P '"DefaultTokenId"="HKEY_LOCAL_MACHINE\\\\(SOFTWARE|Software)\\\\(Wow6432Node\\\\|)Microsoft\\\\Speech\\\\Voices\\\\Token(Enum|)s\\\\[^"]+"' "${WINEPREFIX}/user.reg" | $sed -E -e 's/"DefaultTokenId"="([^"]+)"/\1/g')"
|
||||
exit=1
|
||||
if [[ "${voiceList[@]}" -eq 0 ]]; then
|
||||
if [[ "${#voiceList[@]}" -eq 0 ]]; then
|
||||
dialog --msgbox "No voices found." -1 -1
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user