Refactor all scripts to use common.sh for consistent colored logging
- Update restore.sh to use common.sh instead of inline log function - Update update.sh to use common.sh instead of inline log function - Update recover.sh to use common.sh instead of inline log function - Update check-health.sh to import colors from common.sh Benefits: - DRY principle: color definitions in one place - Consistent logging across all scripts - Easier maintenance: change log format once - All scripts now have colored output in terminal - Reduced code duplication (48 lines removed) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -8,11 +8,9 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
||||
cd "$PROJECT_ROOT"
|
||||
|
||||
# Couleurs pour l'output
|
||||
RED='\033[0;31m'
|
||||
GREEN='\033[0;32m'
|
||||
YELLOW='\033[1;33m'
|
||||
NC='\033[0m' # No Color
|
||||
# Charger les couleurs depuis common.sh
|
||||
# shellcheck disable=SC1091
|
||||
source "$SCRIPT_DIR/common.sh"
|
||||
|
||||
# Compteurs
|
||||
CHECKS_PASSED=0
|
||||
|
||||
Reference in New Issue
Block a user