From 31d66a34aeabe0c4abd0fc71371545c2ee1397ab Mon Sep 17 00:00:00 2001 From: lotigara <105482918+lotigara@users.noreply.github.com> Date: Sat, 20 Jul 2024 13:00:04 +0300 Subject: [PATCH] Fix exporting LT PID and add message about progression. --- scripts/install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index c0c5421..3b597ae 100755 --- a/scripts/install +++ b/scripts/install @@ -31,13 +31,14 @@ pushd $install_dir # WARNING!!! CODE BELOW WASN'T TESTED!!! RUN IN DEBUG MODE FROM SHELL!!! # Checking if additional_languages was enabled... if [ "$additional_languages" = true ] ; then + ynh_script_progression --message="Installing additional models..." --weight=5 # ...if yes, download models... venv/bin/libretranslate --update-models & # ...and then kill the libretranslate process # because it was started after downloading models! - export LT-PID="$!" + export LT_PID="$!" if ss -tulpen | grep '127.0.0.1:5000' ; then kill -INT "$LT_PID" fi