Fixed minor error

This commit is contained in:
justwolf 2021-08-12 17:01:08 +02:00
parent d9e9459c4f
commit 2d45962cf2
1 changed files with 2 additions and 1 deletions

View File

@ -105,12 +105,13 @@ list_languages() {
interactive_mode() {
if which fzf >/dev/null 2>&1; then
load_languages
printf "You will be prompted to enter the language you want to translate from, and then the language you want to translate to. Press Enter to continue." && stty -echo && read && \
printf "You will be prompted to enter the language you want to translate from, and then the language you want to translate to. Press Enter to continue." && stty -echo && read junk && \
from_language=$(sed '/From Language/d' "${CACHE_DIR}"from_language | fzf) && \
to_language=$(sed '/To Language/d' "${CACHE_DIR}"to_language | fzf) && \
printf '\nFrom Language: %s\nTo Language: %s\nEnter the text you want to translate: ' "${from_language}" "${to_language}" && stty echo && read -r input
else
echo "You need to install fzf to use the interactive mode."
exit 2
fi
}