Skip to content

Commit

Permalink
Check if older version of 'library' (xklb) is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
deldesir authored Dec 16, 2024
1 parent 0bf49da commit ad57789
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/iiab-update
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ad57789

Please sign in to comment.