Refactor code structure for improved readability and maintainability

This commit is contained in:
2026-05-10 11:33:32 +02:00
parent e24fad4adc
commit 23259fcce6
5 changed files with 26 additions and 4 deletions

View File

@@ -64,6 +64,17 @@ else
fi
ok "version.txt installiert"
# ── Logo kopieren oder herunterladen ─────────────────────────────────────────
if [ -f "./PiCopy_Logo.png" ]; then
info "Lokales Logo wird verwendet..."
cp PiCopy_Logo.png "$INSTALL_DIR/PiCopy_Logo.png"
else
info "Logo wird heruntergeladen..."
curl -sSfL "$REPO_RAW/PiCopy_Logo.png" -o "$INSTALL_DIR/PiCopy_Logo.png" \
|| warn "Logo konnte nicht heruntergeladen werden (nicht kritisch)."
fi
ok "Logo installiert"
# ── Python-Umgebung ───────────────────────────────────────────────────────────
info "Python venv wird erstellt..."
python3 -m venv "$INSTALL_DIR/venv"