From a3df98cae8d644bc3cb13e48bc1db6aa0f77f471 Mon Sep 17 00:00:00 2001 From: ecchochan Date: Sun, 21 Mar 2021 19:07:35 +0800 Subject: [PATCH] Fix grep pattern Fix grep pattern due to updated Github link --- compile-git-with-openssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile-git-with-openssl.sh b/compile-git-with-openssl.sh index 439a9863d..f2a3fdb66 100755 --- a/compile-git-with-openssl.sh +++ b/compile-git-with-openssl.sh @@ -30,7 +30,7 @@ cd "${BUILDDIR}" # Download the source tarball from GitHub sudo apt update sudo apt install curl -y -git_tarball_url="https://www.github.com$(curl 'https://github.com/git/git/tags' | grep -o "/git/git/archive/v2\..*\.tar\.gz" | sort -r | head -1 | tr -d '\n')" +git_tarball_url="https://www.github.com$(curl 'https://github.com/git/git/tags' | grep -o "/git/git/archive/refs/tags/v2\..*\.tar\.gz" | sort -r | head -1 | tr -d '\n')" echo "DOWNLOADING FROM: ${git_tarball_url}" curl -L --retry 5 "${git_tarball_url}" --output "git-source.tar.gz" tar -xf "git-source.tar.gz" --strip 1