Refactor code structure for improved readability and maintainability
This commit is contained in:
11
install.sh
11
install.sh
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user