From b61d388162438d12df37aa3fcd40bc9d3344d5bd Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 23 Jan 2026 14:26:54 +0000 Subject: Add git prerequisite checks to migration scripts - 10-check-git-sync.sh: Check for git before running - run-migration-analysis.sh: Include git in prerequisite checks - Fixes script failures when git is not installed --- docs/how-to/migration-scripts/run-migration-analysis.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/how-to/migration-scripts/run-migration-analysis.sh') diff --git a/docs/how-to/migration-scripts/run-migration-analysis.sh b/docs/how-to/migration-scripts/run-migration-analysis.sh index 84aec2a..65d9d17 100755 --- a/docs/how-to/migration-scripts/run-migration-analysis.sh +++ b/docs/how-to/migration-scripts/run-migration-analysis.sh @@ -155,7 +155,7 @@ FROM_PHASE="" declare -A PHASE_TIMES usage() { - head -80 "$0" | tail -n +3 | sed 's/^# //' | sed 's/^#//' + head -73 "$0" | tail -n +3 | sed 's/^# //' | sed 's/^#//' exit 0 } @@ -285,7 +285,7 @@ check_prerequisites() { log_info "Checking prerequisites..." # Required tools - for tool in nak jq awk sort; do + for tool in git nak jq awk sort; do if command -v "$tool" &> /dev/null; then log_step "$tool: found" else -- cgit v1.2.3