From 041dc98c9c3251478891e6645cd6f9d97f9c039f Mon Sep 17 00:00:00 2001 From: Florent Rougon Date: Mon, 22 Jun 2020 20:05:26 +0200 Subject: [PATCH] download_and_compile.sh: don't hardcode the address of the FG repo When doing the 'git ls-remote' request to find the latest FG release, d&c was using a hardcoded address for the FG repo. Use ${REPO_ADDRESS[FGFS]} instead. --- download_and_compile.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/download_and_compile.sh b/download_and_compile.sh index cf56ce4..6a47ec0 100755 --- a/download_and_compile.sh +++ b/download_and_compile.sh @@ -784,7 +784,7 @@ case "$SELECTED_SUITE" in stable setup. !!" ;; latest-release) - FG_BRANCH="release/$(git ls-remote --heads https://git.code.sf.net/p/flightgear/flightgear | grep '\/release\/' | cut -f4 -d'/' | sort -t . -k 1,1n -k2,2n -k3,3n | tail -1)" + FG_BRANCH="release/$(git ls-remote --heads "https://${REPO_ADDRESS[FGFS]}" | grep '\/release\/' | cut -f4 -d'/' | sort -t . -k 1,1n -k2,2n -k3,3n | tail -1)" COMPONENT_BRANCH[OPENRTI]=release-0.7 COMPONENT_BRANCH[OSG]=OpenSceneGraph-3.4 COMPONENT_BRANCH[TERRAGEAR]=scenery/ws2.0