From ad57789c65a730ebbfbbedfbb4f290c9b0378ee6 Mon Sep 17 00:00:00 2001 From: Blondel MONDESIR Date: Sun, 15 Dec 2024 21:00:30 -0500 Subject: [PATCH] Check if older version of 'library' (xklb) is installed --- scripts/iiab-update | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/iiab-update b/scripts/iiab-update index dcf7d04f3a..4e5d82547c 100755 --- a/scripts/iiab-update +++ b/scripts/iiab-update @@ -58,6 +58,11 @@ if grep -q 'calibreweb_installed: True' /etc/iiab/iiab_state.yml; then if [[ $1 == "-f" || $1 == "--fast" ]]; then + echo -e "\e[4mChecking if an older version of 'library' (formerly 'xklb') exists...\e[0m" + if pipx list | grep -q 'xklb'; then + echo -e "\e[4mOlder version 'xklb' detected. Now running: pipx uninstall xklb\e[0m" + pipx uninstall xklb + fi echo -e "\e[4mNow running: pipx uninstall library # THIS ALSO UNINSTALLS yt-dlp\e[0m\n" pipx uninstall library echo -e "\n\e[4mNow running: pipx install library # THIS ALSO INSTALLS yt-dlp\e[0m\n"