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

iiab-update: Tiny code cleanup (Calibre-Web section)

This commit is contained in:
A Holt 2024-07-18 00:25:50 -04:00 committed by GitHub
parent 4f98de9331
commit 869ff84453
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,13 +54,12 @@ if grep -q 'calibreweb_installed: True' /etc/iiab/iiab_state.yml; then
pipx install xklb
echo -e "\n\e[4mNow running: yt-dlp --version\e[0m\n"
yt-dlp --version
echo
cd /usr/local/calibre-web-py3
if [[ $(git branch --show-current) != "master" || $(git status --porcelain --untracked-files=no) != "" ]]; then # Permit venv detritus, e.g. untracked files like these 5: bin/ include/ lib/ lib64 pyvenv.cfg
echo -e "\n\n\e[41;1mIn /usr/local/calibre-web-py3, (1) 'git branch' MUST show current branch 'master' and (2) 'git status' must show NO MODIFIED FILES.\e[0m\n\n"
exit 1
fi
echo -e "\e[4mNow running: git pull https://github.com/iiab/calibre-web --no-rebase --no-edit\e[0m\n"
echo -e "\n\e[4mNow running: git pull https://github.com/iiab/calibre-web --no-rebase --no-edit\e[0m\n"
git pull https://github.com/iiab/calibre-web --no-rebase --no-edit
cd /opt/iiab/iiab
if [[ $1 == "-f" || $1 == "--fast" ]]; then