1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 19:22:24 +00:00

Enhance library existence check

This commit is contained in:
Blondel MONDESIR 2024-12-15 22:00:40 -05:00 committed by GitHub
parent 59470cd134
commit 58c5e8e71f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -63,8 +63,12 @@
echo -e "\e[4mOlder version 'xklb' detected. Now running: pipx uninstall xklb\e[0m" echo -e "\e[4mOlder version 'xklb' detected. Now running: pipx uninstall xklb\e[0m"
pipx uninstall xklb pipx uninstall xklb
fi fi
echo -e "\e[4mNow running: pipx uninstall library # THIS ALSO UNINSTALLS yt-dlp\e[0m\n" if pipx list | grep -q 'library'; then
pipx uninstall library || true echo -e "\e[4mNow running: pipx uninstall library # THIS ALSO UNINSTALLS yt-dlp\e[0m\n"
pipx uninstall library
else
echo -e "\e[4m'library' not found. Skipping uninstall.\e[0m\n"
fi
echo -e "\n\e[4mNow running: pipx install library # THIS ALSO INSTALLS yt-dlp\e[0m\n" echo -e "\n\e[4mNow running: pipx install library # THIS ALSO INSTALLS yt-dlp\e[0m\n"
pipx install library pipx install library
echo -e "\n\e[4mNow running: yt-dlp --version\e[0m\n" echo -e "\n\e[4mNow running: yt-dlp --version\e[0m\n"