First tests with audible prompt worked, so changed the subscripts to use the same method. It should now use audible prompt when available and not give an error if it is not available.

This commit is contained in:
Storm Dragon
2023-08-19 17:09:54 -04:00
parent 88e4b13a71
commit f114eb4859
5 changed files with 25 additions and 25 deletions

View File

@ -10,11 +10,11 @@ continue="$(yesno "Do you want to switch the active console screen reader to ${s
if [[ "$continue" == "Yes" ]]; then
if [[ "$screenreader" == "speakup" ]]; then
install_package espeakup
sudo systemctl disable --now fenrirscreenreader.service
sudo systemctl enable --now espeakup.service
sudo "${sudoFlags[@]}" systemctl disable --now fenrirscreenreader.service
sudo "${sudoFlags[@]}" systemctl enable --now espeakup.service
fi
if [[ "$screenreader" == "fenrir" ]]; then
sudo systemctl disable --now espeakup.service
sudo systemctl enable --now fenrirscreenreader.service
sudo "${sudoFlags[@]}" systemctl disable --now espeakup.service
sudo "${sudoFlags[@]}" systemctl enable --now fenrirscreenreader.service
fi
fi