From a179628519ed5a84d4d4f1d3564dd64b982decf3 Mon Sep 17 00:00:00 2001 From: lotigara <105482918+lotigara@users.noreply.github.com> Date: Sat, 20 Jul 2024 14:45:19 +0300 Subject: [PATCH] Replace if with until --- scripts/install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index 102e0cb..d6e3202 100755 --- a/scripts/install +++ b/scripts/install @@ -39,9 +39,9 @@ pushd $install_dir # ...and then kill the libretranslate WebUI / API # because it was started after downloading models! - if ss -tulpen | grep '127.0.0.1:50005' ; then + until ss -tulpen | grep '127.0.0.1:50005' ; do kill -INT "$LT_PID" - fi + done fi popd