From 0b0f7d2a9f8f3ebb6ecfca668b3b53aa0a00183f Mon Sep 17 00:00:00 2001 From: orion Date: Tue, 14 Apr 2026 19:27:29 +0000 Subject: [PATCH] fix(git-hangman-lab): repo get-latest - fix URL extraction from list-all output The awk field parser was using $3 (owner column) instead of $4 (url column). Also fixed space trimming on extracted URL field. --- git-hangman-lab/scripts/repo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-hangman-lab/scripts/repo b/git-hangman-lab/scripts/repo index bfbfc4a..1e189d1 100755 --- a/git-hangman-lab/scripts/repo +++ b/git-hangman-lab/scripts/repo @@ -276,7 +276,7 @@ do_get_latest() { # Repo does not exist locally — clone it echo "Repo not found locally. Looking up URL..." local url="" - url=$(bash "$SCRIPT_DIR/repo" list-all 2>/dev/null | grep "| $REPO_NAME |" | awk -F'|' '{print $3}' | tr -d ' ') + url=$(bash "$SCRIPT_DIR/repo" list-all 2>/dev/null | grep "| $REPO_NAME |" | awk -F'\\|' '{gsub(/^ +| +$/,"",$4); print $4}') if [[ -z "$url" ]]; then echo "Error: repository '$REPO_NAME' not found in list-all output"