upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/how-to/migration-scripts/run-migration-analysis.sh
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-01-23 14:26:54 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-01-27 20:38:02 +0000
commitb61d388162438d12df37aa3fcd40bc9d3344d5bd (patch)
treedeb76a13e3f4bc7098301d0194db1c3ca6672039 /docs/how-to/migration-scripts/run-migration-analysis.sh
parent79d2d01923cf66217fd5aa3a0be5ee9ea2000872 (diff)
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
Diffstat (limited to 'docs/how-to/migration-scripts/run-migration-analysis.sh')
-rwxr-xr-xdocs/how-to/migration-scripts/run-migration-analysis.sh4
1 files changed, 2 insertions, 2 deletions
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=""
155declare -A PHASE_TIMES 155declare -A PHASE_TIMES
156 156
157usage() { 157usage() {
158 head -80 "$0" | tail -n +3 | sed 's/^# //' | sed 's/^#//' 158 head -73 "$0" | tail -n +3 | sed 's/^# //' | sed 's/^#//'
159 exit 0 159 exit 0
160} 160}
161 161
@@ -285,7 +285,7 @@ check_prerequisites() {
285 log_info "Checking prerequisites..." 285 log_info "Checking prerequisites..."
286 286
287 # Required tools 287 # Required tools
288 for tool in nak jq awk sort; do 288 for tool in git nak jq awk sort; do
289 if command -v "$tool" &> /dev/null; then 289 if command -v "$tool" &> /dev/null; then
290 log_step "$tool: found" 290 log_step "$tool: found"
291 else 291 else