home-assistant-apps/cookcli/rootfs/etc/cont-init.d/70-git-sync.sh

12 lines
298 B
Bash

#!/usr/bin/with-contenv bashio
set -e
bashio::log.info "=== Initialisation de Git Sync ==="
# Vérifier que Git est installé
if ! command -v git >/dev/null 2>&1; then
bashio::log.warning "⚠️ Git n'est pas installé."
exit 0
fi
bashio::log.info "✅ Git est prêt : $(git --version)"